SetConditionalFormatting 有多个重载方法,可以针对一个range进行设置的
您获取下rowcount和columncount就好了
Public Overloads Sub SetConditionalFormatting( _
ByVal cellRanges() As CellRange, _
ByVal combinable As Boolean, _
ByVal ParamArray rules() As IConditionalFormattingRule _
)
或者
Public Overloads Sub SetConditionalFormatting( _
ByVal row As Integer, _
ByVal column As Integer, _
ByVal rowCount As Integer, _
ByVal columnCount As Integer, _
ByVal combinable As Boolean, _
ByVal ParamArray rules() As IConditionalFormattingRule _
) |