Table of contents
TOC
Collapse the table of content
Expand the table of content

Application.PresentationSync Event (PowerPoint)

office 365 dev account|Last Updated: 6/12/2017
|
1 Contributor

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

NameRequired/OptionalData TypeDescription
PresRequiredPresentationThe presentation that is being synchronized.
SyncEventTypeRequiredMsoSyncEventTypeThe 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

© 2018 Microsoft