PDA

View Full Version : Code to have SaveFile load userform for new documents only



MaryJane505
07-25-2013, 08:28 AM
I have created a userform that prompts the user to conform to a standardized naming convention when they use Word's FileSaveAs dialog. I would also like to have the form load if the user selects FileSave, but only for new documents. Otherwise, I want the user to be able save changes to their document without having to fill in the form.

Thanks for your help.

Doug Robbins
07-29-2013, 11:43 PM
Replace the MsgBox command in the following with the command to call your userform:


If ActiveDocument.Path = "" Then
MsgBox "The document has not been saved."
End If