Prosenjit Banerjee
New Member
- Joined
- Mar 19, 2002
- Messages
- 19
Hi,
I am in some problem with the "BeforeSave" even of the Workbook. Suppose, I have written a code under the said event. Now, the user chooses the "File->Save As" (or "File->Save" when he is first time saving) option. As soon as he does it the "BeforeSave" event is called up in which I have written some code for saving something (it may be any external files or any registry settings etc.) that SHOULD ONLY BE CALLED IF THE WORKBOOK IS SAVED PROPERLY. But say, the user changes his/her mind and clicks the "Cancel" button of the "File SaveAs" dialog button. But, then what will happen to my event? In that case I will not be revert back my work done in the "BeforeSave" event. So what to do? I want to do something ONLY IF THE WORKBOOK IS SAVED. Please help me.
I am in some problem with the "BeforeSave" even of the Workbook. Suppose, I have written a code under the said event. Now, the user chooses the "File->Save As" (or "File->Save" when he is first time saving) option. As soon as he does it the "BeforeSave" event is called up in which I have written some code for saving something (it may be any external files or any registry settings etc.) that SHOULD ONLY BE CALLED IF THE WORKBOOK IS SAVED PROPERLY. But say, the user changes his/her mind and clicks the "Cancel" button of the "File SaveAs" dialog button. But, then what will happen to my event? In that case I will not be revert back my work done in the "BeforeSave" event. So what to do? I want to do something ONLY IF THE WORKBOOK IS SAVED. Please help me.