I'm trying to create a macro that will loop through my 30 divisions on 4 different tabs and print all to a single pdf (ie 120 pages). Currently its runs through the loop but only combines the LAST division in the loop to the PDF (4 pages only . I'd like to change the macro to print as SINGLE pdf. Thanks!
Sub TestPrintR1()
Dim i As Integer
i = 1
Do Until i > 29
Sheets(Array("Div", "Historical R12 - Division", "Hourly - Division", "Forecast - Division")).Select
Range("q3").Select
ActiveCell.FormulaR1C1 = "=Print!R[" & i - 1 & "]C[-14]"
Range("q4").Select
ActiveSheet.ExportAsFixedFormat Type:=xlTypePDF, FILENAME:= _
"Q:\Lewis Tree Service\Finance\FP&A\Monthly Statements\Test Region 1" & ".pdf", Quality:=xlQualityStandard, _
IncludeDocProperties:=True, IgnorePrintAreas:=False, OpenAfterPublish:= _
False
i = i + 1
Loop
Sub TestPrintR1()
Dim i As Integer
i = 1
Do Until i > 29
Sheets(Array("Div", "Historical R12 - Division", "Hourly - Division", "Forecast - Division")).Select
Range("q3").Select
ActiveCell.FormulaR1C1 = "=Print!R[" & i - 1 & "]C[-14]"
Range("q4").Select
ActiveSheet.ExportAsFixedFormat Type:=xlTypePDF, FILENAME:= _
"Q:\Lewis Tree Service\Finance\FP&A\Monthly Statements\Test Region 1" & ".pdf", Quality:=xlQualityStandard, _
IncludeDocProperties:=True, IgnorePrintAreas:=False, OpenAfterPublish:= _
False
i = i + 1
Loop