I'm Running excel 2003 on windows 10..
I have an issue with WorkBook Before Close
In Workbook Before Close I have code to save the workbook.
This works fine when the workbook is opened and closed from itself.
However, when another workbook activates the open and close procedure for the other book,
the save does not work.
To better understand the problem, I created 2 workbooks, Workbook A and Workbook B.
Workbook A has the following code:-
Workbook B has the following code:-
If I open WB B make changes , say to Sheet 1, then close it, the changes are saved.
If I do the same, then open WB A, WB B is closed but the changes are not save, though
Copy to clipboard
Workbooks("Workbook B.xls").Save
is run.
There must be some subtle reason WB B's Workbook Close event in Workbook Before Close doesn't like being called "externally".
Bookmarks