C
Charles Looker
I need to stop users from saving forms into unprotected formats, e.g. RTF
(believe it or not, my users like to mess about with form layout, creating
business interoperability problems) I have successfully intercepted the
FileSave and FileSaveAs commands. I also need to intercept the Save As
dialog which comes up for a new dialog when the file is closed, so I'm using
a BeforeDocumentClose event handler. I would like them to be able to choose
not to save, so I give them a YesNoCancel message, but I can't prevent the
regular message coming up if they click No on my message. I've put:
ActiveDocument.Saved = True
at the bottom of the event handler subroutine, but it doesn't seem to work.
The problem with the regular message coming up is that they can click Yes on
this and Save As, unintercepted and potentially into an unprotected format.
(believe it or not, my users like to mess about with form layout, creating
business interoperability problems) I have successfully intercepted the
FileSave and FileSaveAs commands. I also need to intercept the Save As
dialog which comes up for a new dialog when the file is closed, so I'm using
a BeforeDocumentClose event handler. I would like them to be able to choose
not to save, so I give them a YesNoCancel message, but I can't prevent the
regular message coming up if they click No on my message. I've put:
ActiveDocument.Saved = True
at the bottom of the event handler subroutine, but it doesn't seem to work.
The problem with the regular message coming up is that they can click Yes on
this and Save As, unintercepted and potentially into an unprotected format.