• 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.

Save userform as a PDF

Rodrigues

Member
Hi all
I'm using attached code to save a userform into a pdf, the problem is that, is converting the excel data into excel. I'm wondering if it is possible to save the userform as it is, either when click on "Command Button1" save as or automatically with number of the "Ref" field.
For this to work
Code:
Sheet1.ExportAsFixedFormat Type:=xlTypePDF, Filename:= _
        "C:\PDF\Book1.pdf", Quality:=xlQualityStandard, _
        IncludeDocProperties:=True, IgnorePrintAreas:=True, OpenAfterPublish:=False
     
Unload UserForm1
End Sub
have created a folder on my C drive called PDF.
Many thanks in advance
Regards
R
 

Attachments

  • Book1.xlsm
    28.6 KB · Views: 29
Userform can't be saved as PDF directly.

You just need to build Excel Sheet to mimic Userform and save as PDF.

However, if you want interactive form on PDF, you'd need to do it from Acrobat side and you'd need licensed version of Acrobat (Payed) or other third party software.
 
Back
Top