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