SyncObject.SyncEnd event (Outlook)

Occurs immediately after Microsoft Outlook finishes synchronizing a user's folders using the specified Send/Receive group.


expression. SyncEnd

expression A variable that represents a SyncObject object.


This event is not available in Microsoft Visual Basic Scripting Edition (VBScript).


This Microsoft Visual Basic for Applications (VBA) example displays a message when synchronization is complete. The sample code must be placed in a class module, and the Initialize_handler routine must be called before the event procedure can be called by Microsoft Outlook.

Dim WithEvents mySync As Outlook.SyncObject 
Sub Initialize_handler() 
 Set mySync = Application.Session.SyncObjects.Item(1) 
End Sub 
Private Sub mySync_SyncEnd() 
 MsgBox "Synchronization is complete." 
End Sub

See also

SyncObject Object

Support and feedback

Have questions or feedback about Office VBA or this documentation? Please see Office VBA support and feedback for guidance about the ways you can receive support and provide feedback.