TIP: Click on subject to list as thread! ANSI
echo: ms_word
to: ALL
from: JOHN DURSO
date: 1996-08-25 14:58:00
subject: MS WORD MACRO HELP (QUIT

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)

SOURCE: echomail via exec-pc

Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.