josephzenten
New Member
- Joined
- Jul 25, 2018
- Messages
- 2
Hello All,
I am new to this forum and have come seeking your advice.
As my title suggest I am currently trying to override my previous save file that is saved in a specific location. However, it is not always the case that I want to save it in the specified location but instead am trying to run the bulk of my macro. But when I click either No, or Cancel I am provided an error : /
The following is the save path, and file name. Please note that the file name is not exactly 'MyFile', but it is to always be saved with a similar name:
ActiveWorkbook.SaveAs Filename:="C:\Users\zent\Desktop\MyFile.xlsx", _
FileFormat:=xlOpenXMLWorkbook, CreateBackup:=False
When I click on "No" when the Yes, No, Cancel dialog appears I am then given run-time error '1004' : /
I have been trying to add to work with the MsgBox properties but I haven't been able to accomplish anything yet. Is there any way for me to be able to click on either No, or Cancel without being given this run time error when I run the Macro ?
Thank you in advance!
I am new to this forum and have come seeking your advice.
As my title suggest I am currently trying to override my previous save file that is saved in a specific location. However, it is not always the case that I want to save it in the specified location but instead am trying to run the bulk of my macro. But when I click either No, or Cancel I am provided an error : /
The following is the save path, and file name. Please note that the file name is not exactly 'MyFile', but it is to always be saved with a similar name:
ActiveWorkbook.SaveAs Filename:="C:\Users\zent\Desktop\MyFile.xlsx", _
FileFormat:=xlOpenXMLWorkbook, CreateBackup:=False
When I click on "No" when the Yes, No, Cancel dialog appears I am then given run-time error '1004' : /
I have been trying to add to work with the MsgBox properties but I haven't been able to accomplish anything yet. Is there any way for me to be able to click on either No, or Cancel without being given this run time error when I run the Macro ?
Thank you in advance!