jebenexcel
Board Regular
- Joined
- Mar 16, 2018
- Messages
- 59
Hello,
Why doesn't this work?
The error is in the line that starts with ChDir abc & ""...
Why doesn't this work?
The error is in the line that starts with ChDir abc & ""...
Code:
abc = "C:\a\b\c"
f = Range("A1")
Sheets("1").Select
[B] ChDir abc & "\" & f & "\" & "\g"[/B]
ActiveSheet.ExportAsFixedFormat Type:=xlTypePDF, Filename:= _
"a" & "_" & f & "_" & Format(Now(), "dd.mm.yyyy") & ".pdf" _
, Quality:=xlQualityStandard, IncludeDocProperties:=True, IgnorePrintAreas _
:=False, OpenAfterPublish:=False
Last edited: