Upravit

Sdílet prostřednictvím


Conflict object (Word)

Represents a conflicting edit in a co authored document. The type of a Conflict object is specified by the WdRevisionType enumeration.

Remarks

Although co authoring in Word is designed to minimize conflicts, conflicts can sometimes occur when editing a document that has co authoring enabled. A conflict occurs when Word requires user input to resolve a merge.

Note

Documents can only be co authored on a server that supports the File Synchronization via SOAP over HTTP protocol, such as Microsoft SharePoint Server 2010.

For example, conflicts could potentially occur when a user opens a co authored document from the server, works offline, and once online again, saves the document back to the server. As another example, conflicts can sometimes occur when more than one person works on the same document range at exactly the same time.

Note

A user is only made aware of conflicts in the document when they perform an explicit document save. When the user performs an explicit document save, Word will enter Conflict Resolution mode if there are conflicts in the document. Conflict Resolution mode enables the user to resolve document conflicts.

Example

The following code example gets the type of each conflict in the active document.

Dim con as Conflict 
 
For Each con in ActiveDocument.CoAuthoring.Conflicts 
MsgBox con.Type 
Next con

See also

Word Object Model Reference

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.