PRINT SPECIFIC PAGES MACRO

P

Peter KNAP

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
 
G

Greg Maxey

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
 
P

Peter KNAP

Thank You Greg.
it works well.
peter.

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

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top