
Receiving notification on Save
Hi Ury,
You might also want to intercept FileSaveAll.
<snip>2. the save as command <\snip>
Sub FileSaveAs()
'
' FileSaveAs Macro
' Saves a copy of the document in a separate file
'
Dialogs(wdDialogFileSaveAs).Show
End Sub
<snip>3. when the user exits and gets the "Do you want to save changes"
message box and selects yes.</snip>
Sub FileClose()
'
' FileClose Macro
' Closes all of the windows of the active document
'
WordBasic.FileClose
End Sub
Quote:
> Hello,
> I need to receive notification after a document was saved, either by:
> 1. the save command,
> 2. the save as command ,
> 3. when the user exits and gets the "Do you want to save changes" message
> box and selects yes.
> For the case 1, I have the following macro, that works OK:
> Sub FileSave()
> MsgBox "Saving"
> ActiveDocument.Save
> End Sub
> I need solutions for the other 2 cases.
> Thanks,
> Ury.