I currently have the following vba code that saves an excel worksheet as PDF:
I should be very grateful if the above code could be changed/tweaked for me so that, instead of saving the worksheet as PDF, it would save the worksheet as normal Excel worksheet (without macros), in the same location/folder as shown above. I use Excel 2007 - 2013.
Thanks all for your kind help, and Merry Christmas to you all.
Kenny
Code:
' 1 Newly created file is saved as a PDF file
Path = "C:\Copy Invoices"
ActiveSheet.ExportAsFixedFormat Type:=xlTypePDF, Filename:= _
Path & "\" & sNewWorkbookName & " - " & [G5], Quality:=xlQualityStandard, _
IncludeDocProperties:=True, IgnorePrintAreas:=False, OpenAfterPublish:= _
False
I should be very grateful if the above code could be changed/tweaked for me so that, instead of saving the worksheet as PDF, it would save the worksheet as normal Excel worksheet (without macros), in the same location/folder as shown above. I use Excel 2007 - 2013.
Thanks all for your kind help, and Merry Christmas to you all.
Kenny
Last edited: