SyncObject.Progress event (Outlook)

Occurs periodically while Microsoft Outlook is synchronizing a user's folders using the specified Send\Receive group.


expression. Progress( _State_ , _Description_ , _Value_ , _Max_ )

expression A variable that represents a SyncObject object.


Name Required/Optional Data type Description
State Required OlSyncState A value that identifies the current state of the synchronization process.
Description Required String A textual description of the current state of the synchronization process.
Value Required Long Specifies the current value of the synchronization process (such as the number of items synchronized).
Max Required Long The maximum that Value can reach. The ratio of Value to Max represents the percent complete of the synchronization process.


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


This Microsoft Visual Basic for Applications (VBA) example shows the progress of synchronization. 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 Outlook.

Public WithEvents mySync As Outlook.SyncObject 
Sub Initialize_handler() 
 Set mySync = Application.Session.SyncObjects.Item(1) 
End Sub 
Private Sub mySync_Progress(ByVal State As Outlook.OlSyncState, ByVal Description As String, ByVal Value As Long, ByVal Max As Long) 
 If Not Description = "" Then 
 MsgBox Description 
 End If 
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.