709-218-7927

The Landfall Garden House

60 Canon Bayley Road

Bonavista, Newfoundland

CANADA A0C 1B0

CPRGreaves@gmail.com

Home

Christopher Greaves

Close Without Saving Changes

Monday, June 6, 2011

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

709-218-7927 CPRGreaves@gmail.com

Bonavista, Sunday, December 08, 2024 9:33 AM

Copyright © 1990-2024 Chris Greaves. All Rights Reserved.