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
have created a folder on my C drive called PDF.
Many thanks in advance
Regards
R
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
Many thanks in advance
Regards
R