This documentation is archived and is not being maintained.

Range.FormulaLabel Property 

Returns or sets the formula label type for the specified range.

Namespace: Microsoft.Office.Interop.Excel
Assembly: Microsoft.Office.Interop.Excel (in microsoft.office.interop.excel.dll)

'Usage
Dim range1 As Range

Dim returnValue As XlFormulaLabel
returnValue = range1.FormulaLabel

Dim sampleValue As XlFormulaLabel
range1.FormulaLabel = sampleValue

XlFormulaLabel FormulaLabel {get; set;}
public XlFormulaLabel get_FormulaLabel();
public void set_FormulaLabel(XlFormulaLabel);
function get FormulaLabel() : XlFormulaLabel;
function set FormulaLabel(XlFormulaLabel);

The return value of this property can be xlNone if the range contains no labels, or one of the following XlFormulaLabel constants:

  • xlColumnLabels

  • xlMixedLabels

  • xlNoLabels

  • xlRowLabels


Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Development Platforms

Windows XP Home Edition, Windows XP Professional, Windows Server 2003, and Windows 2000

Target Platforms

Show: