![]() |
|
|
|
#1
|
|||
|
|||
|
You can try this:
Code:
sub deleteCells()
Dim Ask As Integer
Ask = MsgBox(Prompt:="Is this What you want?", _
Buttons:=vbYesNo, Title:="Confirmation required")
If Ask = vbYes Then
'delete your range
activesheet.range("A1:A10").clearContents
Else
MsgBox "Cancelled by user..."
Exit Sub
End If
end sub
|
|
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Debug for macro run through button only when sheet protected | leahca | Excel Programming | 0 | 11-24-2011 04:47 AM |
Insert Excel sheet
|
markg2 | Word | 1 | 12-15-2010 12:19 PM |
Any tutorial same as to this excel sheet with code?
|
Learner7 | Excel | 1 | 05-18-2010 05:31 PM |
Excel sheet Sequence Number
|
belloffice | Excel | 1 | 02-25-2010 02:41 PM |
| copy cell from sheet 2 to sheet 3 macro | slipperyjim | Excel Programming | 1 | 02-18-2010 01:31 AM |