S
Steve C
I'm looking for code that will not save changes when a user closes a document
called Seating Chart.doc. I've already made it read-only to protect it, but
for simplicity, I just want it to close without the user being prompted to
save changes when either the close button or File > Close is chosen. I've
tried the following lines of code, but all still prompt the user to save
changes. Thanks!
Private Sub Document_Close()
ActiveDocument.Close SaveChanges:=False
ActiveDocument.Quit Savechanges:=False
ActiveDocument.Close SaveChanges:=wdDoNotSaveChanges
End Sub
called Seating Chart.doc. I've already made it read-only to protect it, but
for simplicity, I just want it to close without the user being prompted to
save changes when either the close button or File > Close is chosen. I've
tried the following lines of code, but all still prompt the user to save
changes. Thanks!
Private Sub Document_Close()
ActiveDocument.Close SaveChanges:=False
ActiveDocument.Quit Savechanges:=False
ActiveDocument.Close SaveChanges:=wdDoNotSaveChanges
End Sub