I'm trying to make a macro that exports only a specific area to PDF. I have multiple sheets in my workbook, but I can't use SaveAs with xlSelection because that parameter is bugged and it exports the entire workbook to a PDF. Here is the code that I have:
Sub Export()
'
' Export Macro
'
' Keyboard Shortcut: Option+Cmd+p
'
Range("B1:G32").Select
Selection.ExportAsFixedFormat Type:=xlTypePDF, Filename:="~:Desktop:Quote.pdf", Quality:=xlQualityStandard, _
IncludeDocProperties:=True, IgnorePrintAreas:=False, OpenAfterPublish:=True
End Sub
Please let me know if there is a solution I could try.