Increase Print Size on PDF export

howard

Well-known Member
Joined
Jun 26, 2006
Messages
5,374
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,305
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,078,541
Messages
5,341,061
Members
399,414
Latest member
EMW2159

Some videos you may like

This Week's Hot Topics

  • Problem with Radio Button's format control
    I am creating an employee evaluation template (a sample is below) Column A is the category Column B, C D, E and F will be ratings (unacceptable...
  • Last Display on userform to a Listbox
    [CODE=vba] lstdisplay.ColumnCount = 15 lstdisplay.RowSource = "A1:O600000" [/CODE] So when i do this it Displays everything on the sheet i am...
  • Rename and move files to a new location
    Dear all, I have an excel file with the following information. The actual file name is at column A but i want to rename it using the following...
  • Help with True/False Formula
    Hello! Am stumped how to fix this formula, in which my result returns 'True', but it should return False. =IF(AG2=True...
  • Clear extra characters from a provided range of cells
    Dear All, I have following code which gives me desired output to remove extra characters from a provided range. But it takes too much time when...
  • Help with Current and highest streaks
    Hi there, I've just joined the forum and this is my first post. I've already spent quite a bit of time searching the net and this forum for a...
Top