Hi abbasabdulla,
To answer your queries,
I am using excel 2003, the code doesn't do any action and there is no error message.
Unfortunately, Excel 2003 does not have the "After Save" event; and hence the code does nothing.
I prefer if the code can be placed in a separate file other than book 1or 2.
I understand that you desire to save Book2 everytime you save Book1; then the code needs to rest in Book1, and be executed when you "Save" it. I can't think of another way. Now, I beleive Excel 2003 has a "Before Save" event, so try this code (which, for the above mentioned reasons, should be within Workbook_BeforeSave event of Book1):
This code should execute every time you are about to save Book1 and ask you if you would like to save Book2 as well.
Let us know if anything.
Bookmarks