The_Steward
Board Regular
- Joined
- Nov 26, 2020
- Messages
- 63
- Office Version
- 365
- Platform
- Windows
Hey,
i'm looking to create a 7 page PDF using data from one sheet in my workbook. 2 pages (First two ranges) worked successfully but any more than that has not worked.
i'm looking to create a 7 page PDF using data from one sheet in my workbook. 2 pages (First two ranges) worked successfully but any more than that has not worked.
VBA Code:
Sub Printpdf()
With ActiveSheet.PageSetup
.PrintArea = "$A$1:$B$24,$C$1:$H$24,$I$1:$I$24,$A$28:$B$48,$C$28:$H$48,$I$28:$I$48,$B$52:$C$53"
.FitToPagesWide = 1
.FitToPagesTall = False
End With
ActiveSheet.ExportAsFixedFormat Type:=xlTypePDF, Filename:="Plan Review Budget", Quality:=xlQualityStandard, _
IncludeDocProperties:=False, IgnorePrintAreas:=False, OpenAfterPublish:=True
End With
End Sub