UMAKEMESIK
Active Member
- Joined
- Oct 3, 2005
- Messages
- 378
I am trying to save a file to a path on my company's network. When I type in this line in my - run box in windows it recognizes it and takes me to the proper folder.
Now I am trying to save to that same folder with a specified file name.
excel does not like this line and can not find the path.
Is there something in the above line that does not work in excel, does it not like some of the characters?
Below is the full saving command.
Any help would be appreciated.
Now I am trying to save to that same folder with a specified file name.
excel does not like this line and can not find the path.
Code:
"\\fp_slz\users\%username%\sr.xls" _
Is there something in the above line that does not work in excel, does it not like some of the characters?
Below is the full saving command.
Code:
Application.DisplayAlerts = False
ActiveWorkbook.SaveAs Filename:= _
"\\fp_slz\users\%username%\sr.xls" _
, FileFormat:=xlNormal, Password:="", WriteResPassword:="", _
ReadOnlyRecommended:=False, CreateBackup:=False
Application.DisplayAlerts = True
Any help would be appreciated.