Hi
I recently created a macro in Office 365 to save as a PDF, here's the code:
But it doesn't seem to work in Excel 2007. Please help.
I recently created a macro in Office 365 to save as a PDF, here's the code:
Sub Save_PDF_Quote() Dim Path As String
Dim filename As String
Path = "C:\Users\RISING SUN\Google Drive\Rising Sun Construction\Quotes\PDF"
filename = Range("H16")
ActiveSheet.ExportAsFixedFormat Type:=xlTypePDF, filename:=Path & filename & ".pdf", Quality:= _
xlQualityStandard, IncludeDocProperties:=True, IgnorePrintAreas:=False, _
From:=1, To:=1, OpenAfterPublish:=True
End Sub
But it doesn't seem to work in Excel 2007. Please help.