Pookiemeister
Well-known Member
- Joined
- Jan 6, 2012
- Messages
- 564
- Office Version
- 365
- 2010
- Platform
- Windows
Is there a way to add/append a time date stamp after the PDF name followed by ".pdf" without any runtime errors occuring?
Ex:
CravingFish_7/21/2020_14:11:23.pdf
Thank You
Ex:
CravingFish_7/21/2020_14:11:23.pdf
VBA Code:
Private Sub btnSave_Email_Click()
Dim sPath As String
Dim sFilename As String
sPath = "C:\Users\NameHere\Desktop\Saved PDF TEST\"
sFilename = ThisWorkbook.Name
ActiveSheet.ExportAsFixedFormat xlTypePDF, sPath & sFilename
End Sub
Thank You