SyncStart Event

Occurs when Microsoft Outlook begins synchronizing a user's folders using the specified Send\Receive group. This event is not available in Microsoft Visual Basic Scripting Edition (VBScript).


*object   * An expression that evaluates to a SyncObject object.


This Visual Basic for Applications (VBA) example displays a message telling the user that the synchronization might take a long time. 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 myOlApp As New Outlook.Application
Dim WithEvents mySync As Outlook.SyncObject

Sub Initialize_handler()
 Set mySync = myOlApp.Session.SyncObjects.Item(1)
End Sub

Private Sub mySync_SyncStart()
 MsgBox "Synchronization is about to start. It might take a long time to complete."
End Sub

Applies to | SyncObject Object