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 / April 2007

Tip: Looking for answers? Try searching our database.

PRINT SPECIFIC PAGES MACRO

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Peter KNAP - 20 Apr 2007 12:38 GMT
Hi,
I need to create macro for printing only specified range of pages of active
document.
could somebody help me with progamming it?
thanks.
peter
Greg Maxey - 20 Apr 2007 13:00 GMT
Look up the PrintOut method in VBA Help.

For example this would print page 2 and 6 through 10:

Sub ScratchMacro()
ActiveDocument.PrintOut Range:=wdPrintRangeOfPages, Pages:="2, 6-10"
End Sub

> Hi,
> I need to create macro for printing only specified range of pages of active
> document.
> could somebody help me with progamming it?
> thanks.
> peter
Peter KNAP - 20 Apr 2007 14:30 GMT
Thank You Greg.
it works well.
peter.

„Greg Maxey" napísal (napísala):

> Look up the PrintOut method in VBA Help.
>
[quoted text clipped - 10 lines]
> > thanks.
> > peter
 
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.