FormatConditions.AddUniqueValues method (Excel)

Returns a new UniqueValues object representing a conditional formatting rule for the specified range.

Syntax

expression.AddUniqueValues

expression A variable that represents a FormatConditions object.

Return value

UniqueValues object

Remarks

Use the UniqueValues object to quickly visualize cells that contain either unique or duplicate values.

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.