Increase Print Size on PDF export

howard

Well-known Member
Joined
Jun 26, 2006
Messages
5,371
I have a sheet that I export to PDF using a macro below


I would like to amend this to increase the PDF doc to 150% before exporting the doc


Code:
 Sub Export_Summary_as_PDF()

 Application.ScreenUpdating = False
      Range("Summary").Select
    ActiveSheet.ExportAsFixedFormat Type:=xlTypePDF, Filename:= _
        "C:\My Documents\" & "\" & ActiveSheet.Range("E822").Value & ".pdf", Quality:= _
        xlQualityStandard, IncludeDocProperties:=True, IgnorePrintAreas:=False, _
        OpenAfterPublish:=False

Application.ScreenUpdating = True
 Application.ScreenUpdating = False
      Range("Summary").Select
    ActiveSheet.ExportAsFixedFormat Type:=xlTypePDF, Filename:= _
        "C:\My Documents\" & "\" & ActiveSheet.Range("E822").Value & ".pdf", Quality:= _
        xlQualityStandard, IncludeDocProperties:=True, IgnorePrintAreas:=False, _
        OpenAfterPublish:=False

Application.ScreenUpdating = True

End Sub

It would be appreciated if someone could amend my code
 

Yongle

Well-known Member
Joined
Mar 11, 2015
Messages
4,254
Try this method to set the zoom to 150% before export and then reset it to 100% after export

Code:
    [COLOR=#ff0000]ActiveSheet.PageSetup.Zoom = 150[/COLOR]
    ActiveSheet.ExportAsFixedFormat Type:=xlTypePDF, Filename:= _
        "C:\My Documents\" & "\" & ActiveSheet.Range("E822").Value & ".pdf", Quality:= _
        xlQualityStandard, IncludeDocProperties:=True, IgnorePrintAreas:=False, _
        OpenAfterPublish:=False
    [COLOR=#ff0000]ActiveSheet.PageSetup.Zoom = 10[/COLOR][COLOR=#ff0000]0[/COLOR]
 
Last edited:

Forum statistics

Threads
1,077,957
Messages
5,337,402
Members
399,144
Latest member
Lauren Ward

Some videos you may like

This Week's Hot Topics

Top