Hello,
Why doesn't this work?
The error is in the line that starts with ChDir abc & ""...
abc = "C:\a\b\c"
f = Range("A1")
Sheets("1").Select
ChDir abc & "\" & f & "\" & "\g"
ActiveSheet.ExportAsFixedFormat Type:=xlTypePDF, Filename:= _
"a" & "_" & f & "_" &...