Hi All,

When a user selectrs Save or SaveAs( both are the same to me),

I want to make some checks and if some of the checks return false, I want to cancel save or saveas procedure and prevent saving the file.

For instance users open the file from a template. The name of the file is "BA_Template.doc"

If user presses Save (or SaveAs), A dialogbox opens:

First I check whether user press cancel button, Then I display a warning message,
Then I check whether the name of the file is the with the templatename, if user does not change the name and opt to save the file with the temlate name (even to another folder) I want to display and error message and cancel the save procedure.

Below is my code but I played a lot with it so it isn't organised


Please Login or Register  to view this content.