I'm looking to find the VBA code required to save as PDF in Excel 2007 using the Microsoft add-in.
I've been able to acheive this in Access like this:
Does Excel 2007 have a File format simliar to "acFormatPDF"?
I've tried this:
but it does not work (Runtime error 1004)
Any help would be greatly appreciated. Thanking you in advance
Dan
I've been able to acheive this in Access like this:
Code:
DoCmd.OutputTo acOutputReport, "ReportName", acFormatPDF, Directory
Does Excel 2007 have a File format simliar to "acFormatPDF"?
I've tried this:
Code:
ActiveWorkbook.SaveAs "Report", xlFormatPDF
Any help would be greatly appreciated. Thanking you in advance
Dan