Поделиться через


Conflict.Accept Method (Word)

Accepts the user specified conflict change, and removes the conflict.

Version Information

Version Added: Word 2010

Syntax

expression .Accept

expression An expression that returns a Conflict object.

Return Value

Nothing

Remarks

In a conflict, a user can choose either to keep or to reject the changes they have made to the content where the conflict exists. The Accept method keeps the changes that the user has made.

Example

The following example accepts all of the conflicts in the active document.

Dim conf As Conflict 
 
For Each conf In ActiveDocument.CoAuthoring.Conflicts 
    conf.Accept 
Next conf

Alternatively, you can use the AcceptAll method of the Conflicts collection object to accept all the conflicts in a document, as shown in the following code example.

ActiveDocument.CoAuthoring.Conflicts.AcceptAll

See Also

Concepts

Conflict Object

Conflict Object Members