smattiko83
New Member
- Joined
- Nov 22, 2019
- Messages
- 3
Hi, I'm trying to run this piece of code. The folder path below exist but i do not have access to view it. Is there anyway I can still have the file go there if I can't? Thanks.
VBA Code:
Sheets("smith").Select
Sheets("smith").Copy
ChDir "N:\Home\gsmith\Leave Balances\"
Application.DisplayAlerts = False
ActiveSheet.ExportAsFixedFormat Type:=xlTypePDF, Filename:= _
"N:\Home\gsmith\Leave Balances\Gsmith.pdf", Quality:=xlQualityStandard, _
IncludeDocProperties:=True, IgnorePrintAreas:=False, OpenAfterPublish:= _
False
ChDir "N:\Home\tjohn\Leave Balances\"
Application.DisplayAlerts = False
ActiveSheet.ExportAsFixedFormat Type:=xlTypePDF, Filename:= _
"N:\Home\tjohn\Leave Balances\Gsmith.pdf", Quality:=xlQualityStandard, _
IncludeDocProperties:=True, IgnorePrintAreas:=False, OpenAfterPublish:= _
False
ActiveWindow.Close