Hello,
I'm having error when trying to save a file.
I have path to a shared drive location in C7
Then in cell C27 i have a date to be added to the file name
And in cell C28 name of file to be added also as file name..
Keep getting error related to Save as object..
I have the impression that is because of the path being a shared drive and can't find it.
Is there any way to refresh such connection or something like that so it won't give an error or another way to make it work?
Weirdest thing is that sometimes works fine...
Thanks in advance!
I'm having error when trying to save a file.
I have path to a shared drive location in C7
Then in cell C27 i have a date to be added to the file name
And in cell C28 name of file to be added also as file name..
Code:
Worksheets("Control Panel").Activate
Path = Range("C7")
FileDate = Format(Sheets("Control Panel").Range("C27"), "mmmmyyyy")
FileScenario = Range("C28")
Sheets("Control Panel").Visible = False
Activeworkbook.SaveAs FileName:=Path & "Draft_" & FileDate & "_" & FileScenario & ".xlsx"
Sheets("Control Panel").Visible = True
Keep getting error related to Save as object..
I have the impression that is because of the path being a shared drive and can't find it.
Is there any way to refresh such connection or something like that so it won't give an error or another way to make it work?
Weirdest thing is that sometimes works fine...
Thanks in advance!
Last edited by a moderator: