Execute Code on Synchronize

  • Thread starter Thread starter J.
  • Start date Start date
J

J.

Is there a way I can execute a set of code in VBA when outlook
synchronizes with exchange?

For example, I can execute a set of code when outlook exits by using:
Private Sub Application_Quit()
'code
End Sub

How do I do this when outlook or the user synchronizes?


Thanks.
 
I'm using outlook 2000.

Ken Slovak - said:
Outlook 2002 or later? Use Namespace.SyncObjects. For the SyncObject
representing that send/receive group you can trap the SyncStart and
SyncEnd events.

--
Ken Slovak
[MVP - Outlook]
http://www.slovaktech.com
Lead Author, Professional Outlook 2000 Programming, Wrox Press
Lead Author, Beginning VB 6 Application Development, Wrox Press
Attachment Options
http://www.slovaktech.com/attachmentoptions.htm
Extended Reminders
http://www.slovaktech.com/extendedreminders.htm


J. said:
Is there a way I can execute a set of code in VBA when outlook
synchronizes with exchange?

For example, I can execute a set of code when outlook exits by using:
Private Sub Application_Quit()
'code
End Sub

How do I do this when outlook or the user synchronizes?


Thanks.
 
Back
Top