Ganesh Kanade
New Member
Try this:
Code:Sub SaveAsPDF() 'Saves active worksheet as pdf using concatenation 'of A1,A2,A3 Dim fName As String With ActiveSheet fName = .Range("A1").Value & .Range("A2").Value & .Range("A3").Value .ExportAsFixedFormat Type:=xlTypePDF, Filename:= _ "C:\My Documents\" & fName, Quality:=xlQualityStandard, _ IncludeDocProperties:=True, IgnorePrintAreas:=False, OpenAfterPublish:=False End With End Sub
This code worked for me too, many thanks for that, but I need space between values of the cells and the pdf file should open after creating it. Pls help.
And also is it possible to select the file path each time instead of fixed file path.?
Last edited by a moderator: