Hi Guessed,
Thanks for the suggestion.
Here are the details
- Private Sub Document_Open()
UserForm1.Show
End Sub
-Private Sub CancelButton_Click()
UserForm1.Hide
ActiveDocument.Close SaveChanges:=wdDoNotSaveChanges
End Sub
- The code is in the document only
|