Hi,

can anyone help me?

this code will only create multiple PDF pages but saved it into one PDF files

I want every pages of PDF files to be split out in multiple PDF Files.


Sub CompileReport2()
    Dim mySheets As Variant
    Dim sh As Worksheet

    mySheets = Array("Sheet1", "Sheet2", "Sheet3")
    For Each sh In mySheets
        Sheets(sh).PageSetup.Orientation = xlLandscape
    Next

    Sheets(mySheets).Select
    ActiveSheet.ExportAsFixedFormat Type:=xlTypePDF, Filename:=ThisWorkbook.Path & "\" & "Test2" & ".pdf", _
        Quality:=xlQualityStandard, IncludeDocProperties:=True, IgnorePrintAreas:=False
End Sub