'Declaration Public Function AddFormulaRule( _ ByVal formula As String, _ ByVal style As StyleInfo, _ ByVal ParamArray ranges() As CellRange _ ) As FormulaRule
'Usage Dim instance As ConditionalFormat Dim formula As String Dim style As StyleInfo Dim ranges() As CellRange Dim value As FormulaRule value = instance.AddFormulaRule(formula, style, ranges)
Parameters
- formula
- The condition formula.
- style
- The style that is applied to the cell when the condition is met.
- ranges
- The cell ranges where the rule is applied.
Return Value
Returns the new formula rule.