I have a Word Macro that I want to do something that should be pretty
easy, however, I can not figure out how to do it. I have a macro which
has a few sub macros. Each one of those has a Dialog Screen. In the
first dialog, I want to put a CANCEL button in. If that button is pushed,
the whole macro quits. However, I can only get it to quit the subroutine.
How can I get Word to quit the entire macro?
Any help appreciated.
Thanks
John
Sub MAIN
Call DialogFirst
Call DialogSecond
Call DialogThird
End Sub
Sub DialogFirst
On Error Goto ErrorHandler
Begin Dialog UserDialog 504, 290, "Data"
***dialog data deleted except for cancel Button *****
CancelButton 398, 264, 88, 21
End Dialog
Dim Dlg As UserDialog
choice = Dialog(Dlg)
***** data deleted here where it does stuff ******
Goto Done
ErrorHandler:
Stop SuppressMessage = - 1
Done:
End Sub
---
þ OLXWin 1.00b þ Kennedy for Lifeguard
---------------
* Origin: New England Online OS/2 Oriented BBS (617) 961-7870 (1:101/520)
|