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 / August 2005

Tip: Looking for answers? Try searching our database.

Macro for Print Current Page not always working

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Mike - 04 Aug 2005 17:24 GMT
I have a simple procedure for printing the current page that works some of
the times, but other times prints the entire page (print current page still
works).  This is the procedure:

ActiveDocument.PrintOut Range:=wdPrintCurrentPage

I have so far not been able to figure out why some documents will print the
entire document when this runs, while others will print just the current
page.  Any ideas on where to look for what might be causing the problem with
this would be greatly appreciated.

Mike
Tabasco Ed - 24 Aug 2005 18:19 GMT
>I have a simple procedure for printing the current page that works some of
>the times, but other times prints the entire page (print current page still
[quoted text clipped - 8 lines]
>
>Mike

Try this, it works for me:

   'Print the current page.
   Application.PrintOut FileName:="", Range:=wdPrintRangeOfPages, _
       Item:=wdPrintDocumentContent, Copies:=1, _
       Pages:=CStr(Selection.Information(wdActiveEndPageNumber)), _
       PageType:=wdPrintAllPages, Collate:=True, _
       Background:=False, PrintToFile:=False

Rate this thread:






 
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.