Dazzybeeguy
Board Regular
- Joined
- Jan 6, 2022
- Messages
- 72
- Office Version
- 365
- 2010
- Platform
- Windows
When I run this it saves to the Location that's in cell Z2 but saved it with filename as FALSE, any ideas what's wrong with my code ???
In cell Z2 it has location with filename at the end which will show current date "C:\Users\me\Documents\File Name 19-01-23.pdf"
Sub Create_Shift_PDF()
'
' Create_Shift_PDF Macro
' Will Save Current Data as a PDF Form
'
ActiveSheet.ExportAsFixedFormat Type:=xlTypePDF, Filename:= _
saveLocation = Sheets("Shift Brief").Range("z2").Value _
, Quality:=xlQualityStandard, IncludeDocProperties:=True, IgnorePrintAreas _
:=False, OpenAfterPublish:=True
End Sub
In cell Z2 it has location with filename at the end which will show current date "C:\Users\me\Documents\File Name 19-01-23.pdf"
Sub Create_Shift_PDF()
'
' Create_Shift_PDF Macro
' Will Save Current Data as a PDF Form
'
ActiveSheet.ExportAsFixedFormat Type:=xlTypePDF, Filename:= _
saveLocation = Sheets("Shift Brief").Range("z2").Value _
, Quality:=xlQualityStandard, IncludeDocProperties:=True, IgnorePrintAreas _
:=False, OpenAfterPublish:=True
End Sub