NamedRange::FormulaArray Property

 

Gets or sets the array formula of the NamedRange control.

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

property Object^ FormulaArray {
	Object^ get();
	void set(Object^ value);
}

Property Value

Type: System::Object^

The array formula of the NamedRange control.

This property returns (or can be set to) a single formula or an array.

If the NamedRange control does not contain an array formula, this property returns null.

If you use this property to enter an array formula, the formula must use the R1C1 reference style, not the A1 reference style.

The following code example creates a NamedRange and then uses the FormulaArray property to set the value of the NamedRange to equal the sum of the array of cells A1 through A3.

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: