Kristina96
New Member
- Joined
- Sep 30, 2019
- Messages
- 33
Hello everyone,
I have a macro that opens another excel file, makeschanges in that file and should then save and close the document.
Currently I am using this line of code for saving and closing the document:
By using this code it is doing save as meaning it opens an additional window asking where to save the new document. I just want to save the changes to the exisiting document. In other words a simple "Save" instead of "Save As". How do I have to change the code?
Thank you and best regards,
Kristina
I have a macro that opens another excel file, makeschanges in that file and should then save and close the document.
Currently I am using this line of code for saving and closing the document:
Code:
WB2.Close SaveChanges:=True
By using this code it is doing save as meaning it opens an additional window asking where to save the new document. I just want to save the changes to the exisiting document. In other words a simple "Save" instead of "Save As". How do I have to change the code?
Thank you and best regards,
Kristina