Skip to content

Latest commit

 

History

History
91 lines (52 loc) · 2.4 KB

Outlook.Conflicts.md

File metadata and controls

91 lines (52 loc) · 2.4 KB
title keywords f1_keywords api_name ms.assetid ms.date ms.localizationpriority
Conflicts object (Outlook)
vbaol11.chm399
vbaol11.chm399
Outlook.Conflicts
c4e1c060-519a-a6d1-8fb2-c7dfa1e3e66f
06/08/2017
medium

Conflicts object (Outlook)

Contains a collection of Conflict objects that represent all Microsoft Outlook items that are in conflict with a particular Outlook item.

Remarks

Use the Conflicts property of any Outlook item, such as MailItem, to return the Conflicts object.

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.

Use the GetFirst, GetNext, GetPrevious, and GetLast methods to traverse the Conflicts collection.

Example

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

Methods

Name
GetFirst
GetLast
GetNext
GetPrevious
Item

Properties

Name
Application
Class
Count
Parent
Session

See also

Outlook Object Model Reference

[!includeSupport and feedback]