Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!sdd.hp.com!zaphod.mps.ohio-state.edu!sol.ctr.columbia.edu!cunixf.cc.columbia.edu!gg2 From: gg2@cunixf.cc.columbia.edu (Guy Gallo) Newsgroups: comp.windows.ms Subject: Re: WfW BASIC 'on error goto' Message-ID: <1991Feb21.083236.3690@cunixf.cc.columbia.edu> Date: 21 Feb 91 08:32:36 GMT References: <11497@uhccux.uhcc.Hawaii.Edu> Reply-To: gg2@cunixf.cc.columbia.edu (Guy Gallo) Organization: Columbia University Lines: 22 You need to place an On Error Goto EndLabel on the line *before* the statement accepting cancel. So, for instance, in displaying a dialog box you would have ... On Error Goto EndLabelName Dialog Dlg On Error Goto 0 ... Statements when not cancelled ... EndLabelName 'Marks the end of the macro End Sub You might be interested to know that Microsoft is giving away a short (170) page introduction to WordBASIC called Using WordBASIC. Call 1-800-426-9400 and ask for the WordBASIC Binder for the PC (there is also one for the Mac, be specific), part number 059-050-574. Not every operator is up on this promotion: but be assured, the first copy of Using WordBASIC is free. Additional copies are 15.00. Also, there is a new addition of the Technical Reference.