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 / Programming / June 2005

Tip: Looking for answers? Try searching our database.

Print and Exit withou Saving

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Tim - 15 Jun 2005 15:28 GMT
Hi,

I use this code and it works great...

   ActiveDocument.PrintOut
   Application.DisplayAlerts = False
   ActiveDocument.Application.Quit
   Application.DisplayAlerts = True

But when I open my word attachment from Outlook, I still keep getting the
"do you want to save prompt"....

Would anyone know why it works fine when you open a normal file but when you
open an attachment from outlook the code doesn't work?

Thx :)
Doug Robbins - 16 Jun 2005 15:00 GMT
Use

With ActiveDocument
   .PrintOut
   .Close wdDoNotSaveChanges
End With

Signature

Hope this helps.

Please reply to the newsgroup unless you wish to avail yourself of my
services on a paid consulting basis.

Doug Robbins - Word MVP

> Hi,
>
[quoted text clipped - 13 lines]
>
> Thx :)
 
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.