Home |
Search |
Today's Posts |
#7
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Sorry Norman
Your codes work. Thanks. Best Regards Varne M "Norman Jones" wrote: Hi N, Regardless of yes or no "a1" is deleted. Please check. Thanks. That is not my experience. If the user selects the 'No' option, the Exit Sub instruction prevents the processing of subsequent instructions. --- Regards, Norman "Varne" wrote in message ... Hi Norman Regardless of yes or no "a1" is deleted. Please check. Thanks. Varne M "Norman Jones" wrote: Hi M, Try: '============= Public Sub Tester() Dim res As VbMsgBoxResult res = MsgBox(Prompt:="Do you wish to continue", _ Buttons:=vbYesNo, _ Title:="Continue") If res = vbNo Then Exit Sub End If ActiveSheet.Range("A1").ClearContents End Sub '<<============= --- Regards, Norman |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Dialogue Box | Excel Discussion (Misc queries) | |||
dialogue pop up | Excel Discussion (Misc queries) | |||
pop up dialogue box | New Users to Excel | |||
pop up dialogue | Excel Discussion (Misc queries) | |||
Dialogue Box | Excel Programming |