Receiving notification on Save 
Author Message
 Receiving notification on Save

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.



Sun, 13 Jun 2004 15:52:03 GMT  
 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.



Sun, 13 Jun 2004 22:33:52 GMT  
 
 [ 2 post ] 

 Relevant Pages 

1. Receiving notification on Send, Receive and Delete

2. How to receive file change notification in VB6?

3. send/receive notifications

4. Send/Receive Notification

5. Receive a notification from windows when the system is idle

6. How to receive file change notification in VB6?

7. Receiving notification about changes(adding or removing ActiveX controls) in the container

8. Not receiving any error notifications from ADO

9. FTP Notification when a file is received

10. How to receive file change notification?

11. Word 2000: Need event notification AFTER save completed.

12. Word 2000: Need event notification AFTER save completed.

 

 
Powered by phpBB® Forum Software