Share via


FormatCondition.Formula2 Property

Returns the value or expression associated with the second part of a conditional format or data validation.

Namespace:  Microsoft.Office.Interop.Excel
Assembly:  Microsoft.Office.Interop.Excel (in Microsoft.Office.Interop.Excel.dll)

Syntax

'Declaration
ReadOnly Property Formula2 As String
    Get
'Usage
Dim instance As FormatCondition
Dim value As String

value = instance.Formula2
string Formula2 { get; }

Property Value

Type: System.String

Remarks

The Formula2 property is used only when the data validation conditional format Operator property is xlBetween or xlNotBetween. Can be a constant value, a string value, a cell reference, or a formula.

See Also

Reference

FormatCondition Interface

FormatCondition Members

Microsoft.Office.Interop.Excel Namespace