709-218-7927 The Landfall Garden House 60 Canon Bayley Road CANADA A0C 1B0 |
---|
File,Close (No Save)
Tuesday, August 9, 2011
I'm feeling guilty about the length of the previous post.
I hope you'll accept this token of remorse.
We use Ctrl-F4 to close a document, and of course if the contents of the document have changed we get to answer the skill-testing question "Do you want to save?".
Oftentimes we know in advance that we don't want the changes. Perhaps we have been experimenting with the document and want to discard all changes before we accidentally overwrite the good version.
Closing a File (document) without saving changes is a one-liner, as shown below.
For extra utility you may want to assign an unused shortcut key combination to this macro.
Sub FileCloseNoSave()ActiveDocument.Close (wdDoNotSaveChanges)
End Sub
7092187927 CPRGreaves@gmail.com Bonavista, Friday, December 04, 2020 5:55 PM Copyright © 1996-2020 Chris Greaves. All Rights Reserved. |
---|