Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Word / Menus and Toolbars / February 2007

Tip: Looking for answers? Try searching our database.

Close Without Saving

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Jeannine - 21 Feb 2007 17:47 GMT
I want to put a button on my toolbar that closes a document without saving
it -- or asking me if I want to save it.  I just want to click a button and
the document disappears.  How can I do this?  Thanks, Jeannine
Graham Mayor - 22 Feb 2007 06:44 GMT
This is a very unwise thing to do. I guarantee that you will click it
automatically and lose an important document. Documents that have not been
saved cannot be recovered.
However if you insist, add the following macro to a toolbar button

Sub CloseMyFile()
ActiveDocument.Close (DoNotSaveChanges)
End Sub

http://www.gmayor.com/installing_macro.htm

Signature

<>>< ><<> ><<> <>>< ><<> <>>< <>><<>
Graham Mayor -  Word MVP

My web site www.gmayor.com
Word MVP web site http://word.mvps.org
<>>< ><<> ><<> <>>< ><<> <>>< <>><<>

> I want to put a button on my toolbar that closes a document without
> saving it -- or asking me if I want to save it.  I just want to click
> a button and the document disappears.  How can I do this?  Thanks,
> Jeannine
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.