Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Printing Multiple ranges in VBA...????

Status
Not open for further replies.

mbarnett

MIS
Jun 15, 2003
123
US
Hi All,

I'm trying to print multiple ranges into one pdf document. I'm having a difficult time trying to do this because the ranges are in diffrent sheets in the same workbook. I would appreciate any feed back. I;ve attacted a sample of the code I'm working one.

Sub MyPDFRangePrint()
Dim rng As Variant
Dim mypdf As String

mypdf = "C:\Mo.pdf"
Set rng = Range("PackageCover_Page", "MacroHdg_Print")
rng.Select
Selection.PrintOut Copies:=1, ActivePrinter:="Acrobat PDFWriter on LPT1:", prtofilename:=mypdf


End Sub
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top