Dear Sir,
I am using following code link with button, when it click, it save the file with cell value.
I want if the file already exist in folder, it should not replace the file, instead it saved it with extension like 123(1)
I am using following code link with button, when it click, it save the file with cell value.
I want if the file already exist in folder, it should not replace the file, instead it saved it with extension like 123(1)
<<< use code -tags >>>
Code:
Sub PDFActiveSheet()
ActiveSheet.ExportAsFixedFormat Type:=xlTypePDF, FileName:=ThisWorkbook.Path & "\TCS Style Name " & Range("D16").Value _
, Quality:=xlQualityStandard, IncludeDocProperties:=True, IgnorePrintAreas _
:=False, OpenAfterPublish:=True
End Sub
Last edited by a moderator: