I have the following lines of code that shows a Word SaveAs dialog box. The only problem is that if my Lease Writers press cancel, the macro keeps running and overwrites the Word "boiler." This occurs even though the boiler is read only. Is there any way that I can have as part of the SaveAs dialog box, a warning not to press "Cancel"? Or, is there a way to capture a cancel selection and then quit running the macro? Thank you.
Dim dlg As Dialog
Set dlg = Dialogs(wdDialogFileSaveAs)
dlg.Name = strFileName