Application.PresentationSync event (PowerPoint)

Occurs when the local copy of a presentation that is part of a Document Workspace is synchronized with the copy on the server. Provides important status information regarding the success or failure of the synchronization of the presentation.

Syntax

expression. PresentationSync( _Pres_, _SyncEventType_ )

expression A variable that represents an Application object.

Parameters

Name Required/Optional Data type Description
Pres Required Presentation The presentation that is being synchronized.
SyncEventType Required MsoSyncEventType The status of the synchronization.

Remarks

The SyncEventType parameter value can be one of these MsoSyncEventType constants.

msoSyncEventDownloadInitiated
msoSyncEventDownloadSucceeded
msoSyncEventDownloadFailed
msoSyncEventUploadInitiated
msoSyncEventUploadSucceeded
msoSyncEventUploadFailed
msoSyncEventDownloadNoChange
msoSyncEventOffline

Example

The following example displays a message if the synchronization of a presentation in a Document Workspace fails.

Private Sub app_PresentationSync(ByVal Pres As Presentation, _
        ByVal SyncEventType As Office.MsoSyncEventType)

    If SyncEventType = msoSyncEventDownloadFailed Or _
            SyncEventType = msoSyncEventUploadFailed Then

        MsgBox "Synchronization failed. " & _
            "Please contact your administrator, " & vbCrLf & _
            "or try again later."

    End If

End Sub

See also

Application 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.