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 TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Close without Saving in word

Status
Not open for further replies.

moontho

Technical User
Jun 4, 2003
85
GB
Hi.

Is there a way using code to close a document without saving, thus preventing the "do you want to save" box coming up with some documents.

Many thanks

Thom
 
Thom
Code:
ThisDocument.Close SaveChanges:=wdDoNotSaveChanges


Skip,

[glasses] [red]Be advised:[/red] When transmitting sheet music...
If it ain't baroque, don't fax it! [tongue]
 
Brilliant. Thanks for the quick response
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top