Version

Formula Property (WorksheetCell)

Gets the formula which has been applied to the cell.
Syntax
'Declaration
 
Public ReadOnly Property Formula As Formula
public Formula Formula {get;}

Property Value

The formula which has been applied to the cell or null if no formula has been applied.
Remarks

If a formula has been applied to the cell, getting the Value will return the calculated value of the formula.

Note: it is slightly faster to use the WorksheetRow.GetCellFormula method, which does not create a WorksheetCell instance internally. However, if a reference to the WorksheetCell instance already exists, using this property is equivalent to using the WorksheetRow.GetCellFormula method.

Requirements

Target Platforms: Windows 8.1, Windows 8.1, Windows 8, Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also

View on GitHub