Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations biv343 on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to indicate NOT to save changes after closing Word doc 1

Status
Not open for further replies.

carl777

Instructor
Oct 1, 2002
20
US
After closing an as-not-yet-saved Word 2000 document with "ActiveWindow.Close," what is the VBA command that indicates to NOT save the changes to the document, so that you do NOT have to manually respond to the dialog box "Do you want to save the changes you made to documentn?" THANK YOU.
 
Code:
Sub NoAlerts()
Application.DisplayAlerts = False
' your code
ActiveWindow.Close
Code:
SaveChanges:=False[code][/color]
Application.DisplayAlerts = True
End Sub

Peace! [peace]

Mike

Never say Never!!!
Nothing is impossible!!!
 
That did it, Mike. Many thanks again!!

Carl
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top