I am using this code and is working fine
Please can you help me adding the second page in the above .pdf
The range for the second page is T3:Z21.
I will be extremely thankful to the VBA gurus.
VBA Code:
Sub Print_PDF()
Dim ThisFile As String
Dim ThisPath As String
With Worksheets("Autoclinics")
With .PageSetup
.RightFooter = "Printed on &D at &T"
.PrintQuality = 600
.CenterHorizontally = True
.CenterVertically = False
.Orientation = xlLandscape
.Draft = False
.PaperSize = xlPaperA4
End With
ThisFile = .Range("AB2").Value
ThisPath = .Range("AA2").Value
.Range("D3:R40").ExportAsFixedFormat _
Type:=xlTypePDF, _
Filename:=ThisPath & ThisFile & ".pdf", _
Quality:=xlQualityStandard, _
IncludeDocProperties:=True, _
IgnorePrintAreas:=False, _
OpenAfterPublish:=False
Application.StatusBar = False
End With
End Sub
Please can you help me adding the second page in the above .pdf
The range for the second page is T3:Z21.
I will be extremely thankful to the VBA gurus.