Monday, June 6, 2011

Close without saving changes

Do you ever get partway through changing a Word document and think "Oh this is totally silly"?
Here's the macro to shut down what you're doing and abandon all changes.
Effortlessly.
Without getting confused over Word's skill-testing questions late at night.
Public Sub CloseNoSave()
''' Close the current document without saving it
ActiveDocument.Close (wdDoNotSaveChanges)
End Sub

No comments:

Post a Comment