Share via


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

Concepts

Application Object

Application Object Members