NamedRange::RefersToR1C1 Property

 

Gets or sets the formula that the NamedRange control is defined to refer to, using R1C1-style notation.

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

property String^ RefersToR1C1 {
	String^ get();
	void set(String^ value);
}

Property Value

Type: System::String^

The formula that the NamedRange control is defined to refer to. The formula uses R1C1-style notation and begins with an equal sign.

Use the RefersToR1C1 property to change the range that a NamedRange control refers to.

The following code example creates a NamedRange and displays the formula for the NamedRange. It then assigns a new cell to the NamedRange and displays the new formula.

This example is for a document-level customization.

No code example is currently available or this language may not be supported.
Return to top
Show: