Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming,microsoft.public.word.vba.beginners
|
|||
|
|||
![]()
Hi,
how can I abort / cancel a vba program immediately, without returning to the calling procedure? I already have a rather complex vba application with many sub's and functions. The only thing I found by now is the "stop" command, but it enters debugging mode, so this is not what I want. i want to have something like this: Sub Main CheckValues MsgBox "Completed successfully" End Sub Sub CheckValues If SomeVar = SomeValue Then MsgBox "Error" 'now stop it End If End Sub |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Beginners Question | Excel Discussion (Misc queries) | |||
Beginners Question | Excel Discussion (Misc queries) | |||
Stop Execution | Excel Programming | |||
Program execution prob | Excel Programming | |||
stop execution | Excel Programming |