Compartilhar via


Conflict.Reject Method (Word)

Rejects the user change, removes the conflict, and accepts the server copy of the change for the conflict.

Version Information

Version Added: Word 2010

Syntax

expression .Reject

expression An expression that returns a Conflict object.

Return Value

Nothing

Remarks

The Reject method rejects the user version of a conflict and accepts the version that is currently on the server.

Example

The following code example rejects all the conflicts in the active document.

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

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

ActiveDocument.CoAuthoring.Conflicts.RejectAll

See Also

Concepts

Conflict Object

Conflict Object Members