• Hi All

    Please note that at the Chandoo.org Forums there is Zero Tolerance to Spam

    Post Spam and you Will Be Deleted as a User

    Hui...

  • When starting a new post, to receive a quicker and more targeted answer, Please include a sample file in the initial post.

Button in Excel to Save as PDF

I have a button on my workbook which opens the Save As dialog box. I need the fiolw to be saved as a PDF. Is this possible.


Code:
vFilename = Application.GetSaveAsFilename(FileFilter:="Microsoft Excel Workbooks,*.xls")

If vFilename <> False Then ActiveWorkbook.SaveAs vFilename
 
@lesley burlingham

What version of Excel are you using? I ask since you have ".xls" in your code.
Office 2003 does not have native ability to save as PDF and will require 3rd party software.
 
Back
Top