WorksheetFunction.IsFormula(Range) Method

Definition

Checks whether a reference is to a cell containing a formula, and returns TRUE or FALSE.

public:
 bool IsFormula(Microsoft::Office::Interop::Excel::Range ^ Arg1);
public bool IsFormula (Microsoft.Office.Interop.Excel.Range Arg1);
Public Function IsFormula (Arg1 As Range) As Boolean

Parameters

Arg1
Range

Reference to the cell you want to test. Reference can be a cell reference, a formula, or name that refers to a cell.

Returns

BOOL

Applies to