FormatConditions.AddTop10 method (Excel)

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

Syntax

expression.AddTop10

expression A variable that represents a FormatConditions object.

Return value

Top10 object

Remarks

Using the Top10 object, you can find the highest and lowest values in a range of cells based on a cutoff value that you specify. For example, you can find the top five selling products in a regional report, the bottom 15 percent of products in a customer survey, or the top 25 salaries in a department personnel analysis.

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.