Start Method

Microsoft Outlook Visual Basic

Start Method

       

Begins synchronizing a user’s folders using the specified synchronization profile.

expression.Start

expression   Required. An expression that returns a SyncObject object.

Example

This Microsoft Visual Basic/Visual Basic for Applications example starts synchronization of the user’s second synchronization profile in response to the user clicking a button on a form. The mySyncObj variable is declared as a public variable so it can be referenced by other modules.

Public mySyncObj As Outlook.SyncObject

Private Sub Command1_Click()
    Dim myOlApp As New Outlook.Application
    Dim mySyncs As Outlook.SyncObjects
    Set mySyncs = myOlApp.GetNamespace("MAPI").SyncObjects
    Set mySyncObj = mySyncs.Item(1)
    mySyncObj.Start
End Sub