Conflicts object (Outlook)
Contains a collection of Conflict objects that represent all Microsoft Outlook items that are in conflict with a particular Outlook item.
Use the Count property of the Conflicts object to determine if the item is involved in a conflict. A non-zero value indicates conflict.
Use the Item method to retrieve a particular conflict item from the Conflicts collection object.
The following Microsoft Visual Basic for Applications (VBA) example uses the Count property of the Conflicts object to determine if the item is involved in any conflict. To run this example, make sure an email item is open in the active window.
Sub CheckConflicts() Dim myItem As Outlook.MailItem Dim myConflicts As Outlook.Conflicts Set myItem = Application.ActiveInspector.CurrentItem Set myConflicts = myItem.Conflicts If (myConflicts.Count > 0) Then MsgBox ("This item is involved in a conflict.") Else MsgBox ("This item is not involved in any conflicts.") End If End Sub
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.