Hi Moni.
I think the only way you could get the kind of behavior you are looking for, aside from placing code in every applicable workbook, would be to create an addin. Open a new workbook, place this code in the workbook class, save it as an addin (xla), load your new addin.
Note this constant:
Private Const AutoSaveChanges As Boolean = True
Assigning 'True' will automatically save each workbook without prompt. If you require the option to save changes or not, change the True assignment to False. False would allow the savechanges GUI to popup.
Bookmarks