Sync.Status Property
Office Developer Reference |
Gets the status of the synchronization of the local copy of the active document with the server copy. Read-only.
Syntax
expression.Status
expression Required. A variable that represents a Sync object.
Remarks
Use the Status property to determine whether the local copy of the active document is synchronized with the shared server copy. Use the GetUpdate method to refresh the status. Use the following methods and properties when appropriate to respond to various status conditions:
- msoSyncStatusConflict - True when both the local and the server copies have changes. Use the ResolveConflict method to resolve the differences.
- msoSyncStatusError - Check the ErrorType property.
- msoSyncStatusLocalChanges - True when only the local copy has changes. Use the PutUpdate method to save local changes to the server copy.
- msoSyncStatusNewerAvailable - True when only the server copy has changes. Close and re-open the document to work with the latest copy from the server.
- msoSyncStatusSuspended - Use the Unsuspend method to resume synchronization.
The Status property returns a single constant from the list in the following order of precedence:
- msoSyncStatusNoSharedWorkspace
- msoSyncStatusError
- msoSyncStatusSuspended
- msoSyncStatusConflict
- msoSyncStatusNewerAvailable
- msoSyncStatusLocalChanges
- msoSyncStatusLatest
Example
The following example examines the Status property and takes an appropriate action to synchronize the local and server copies of the document if necessary.
Visual Basic for Applications |
---|
|
See Also