SyncObject.Start method (Outlook)

Begins synchronizing a user's folders using the specified Send\Receive group.



expression An expression that returns a 'SyncObject' object.


This Microsoft Visual Basic for Applications (VBA) example displays all the Send\Receive groups set up for the user and starts the synchronization based on user's response.

Public Sub Sync() 
 Dim nsp As Outlook.NameSpace 
 Dim sycs As Outlook.SyncObjects 
 Dim syc As Outlook.SyncObject 
 Dim i As Integer 
 Dim strPrompt As Integer 
 Set nsp = Application.GetNamespace("MAPI") 
 Set sycs = nsp.SyncObjects 
 For i = 1 To sycs.Count 
Set syc = sycs.Item(i) 
strPrompt = MsgBox( _ 
 "Do you wish to synchronize " & syc.Name &"?", vbYesNo) 
If strPrompt = vbYes Then 
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.