Hi,
I would like to alter the below code to include saving the file as an excel as well as pdf into the folder...
Additionally, I would like for there to be a hyphen and spaces between the cell values for file name if possible:
Many thanks,
I would like to alter the below code to include saving the file as an excel as well as pdf into the folder...
Additionally, I would like for there to be a hyphen and spaces between the cell values for file name if possible:
Code:
Sub SaveAsPDF()
Dim fName As String
With ActiveSheet
fName = .Range("L4").Value & .Range("P1").Value & .Range("E6").Value
.ExportAsFixedFormat Type:=xlTypePDF, fileName:= _
"I:\FST\Quality\Non-Conformance\Non-Conformance Reports\Open\" & fName, Quality:=xlQualityStandard, _
IncludeDocProperties:=True, IgnorePrintAreas:=False, OpenAfterPublish:=True
End With
End Sub
Many thanks,