I am working in VBA (Word 97) and I have created a template with multiple forms which prompt the user for information. I would like to create a "Close Document" button (to be used if the user gets half way through the prompts and decides that he/she does not want to finish, but instead would like to close out of the document) that will close the document, and also prevent all prompts programmed to appear after that point from showing up. Right now I have code like this:
Private Sub cmdClose_Click()
Unload Me
ActiveDocument.Close
End Sub
But with the above code, the document closes, but the program continues to run and thus the user is prompted through all of the following forms.
Is there a way to close the document and quit the program at that point?
Private Sub cmdClose_Click()
Unload Me
ActiveDocument.Close
End Sub
But with the above code, the document closes, but the program continues to run and thus the user is prompted through all of the following forms.
Is there a way to close the document and quit the program at that point?