SetLastPriority 方法 (Excel)ColorScale.SetLastPriority method (Excel)

设置此条件格式规则的计算顺序, 以便在工作表上的所有其他规则之后计算此规则。Sets the evaluation order for this conditional formatting rule so that it is evaluated after all other rules on the worksheet.

语法Syntax

表达式SetLastPriorityexpression.SetLastPriority

_表达式_一个代表**色阶** 对象的变量。expression A variable that represents a ColorScale object.

备注Remarks

优先级的实际值将等于工作表上的条件格式规则总数。The actual value of the priority will be equal to the total number of conditional formatting rules on the worksheet. 当工作表上有多个条件格式规则时, 此方法将导致优先级值大于此规则的规则的优先级减小1。When you have multiple conditional formatting rules on a worksheet, this method will cause the priority of rules that had a priority value greater than this rule to be decreased by one.

备注

将在工作表级别应用条件格式规则的优先级。Priority levels for conditional formatting rules are applied on a worksheet-level basis.

支持和反馈Support and feedback

有关于 Office VBA 或本文档的疑问或反馈?Have questions or feedback about Office VBA or this documentation? 请参阅 Office VBA 支持和反馈,获取有关如何接收支持和提供反馈的指南。Please see Office VBA support and feedback for guidance about the ways you can receive support and provide feedback.