Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hi,
I have included the following 2 lines of code msgbox ("Running of a Macro empties the UNDO stack. You should save your workbook with a different version number before running this Macro. Press Yes if you would you like to exit out of the macro and save your workbook. Press No if you have already saved the workbook and would like to continue with macro execution", vbOKCancel, "Warning") As msgboxresult If msgboxresult = "Cancel" Then Exit Sub When running the above code it bombs at the line - msgbox ("...") As msgboxresult The error im getting is -- compile error : statement invalid outside Type Block Please guide me as to what am doing wrong -- Thanks a lot, Hari India |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Which button was pressed? | Excel Programming | |||
VB msgbox exit | Excel Programming | |||
If a called sub exit, how to the caller exit right away? | Excel Programming | |||
ComboBox DropDown when Key is pressed | Excel Programming | |||
If no FIND value is found, then a Msgbox to say so and exit sub | Excel Programming |