NamedRange::Value2 Property

 

Gets or sets the value of the NamedRange control.

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

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

Property Value

Type: System::Object^

The value of the NamedRange control.

The only difference between this property and the Value property is that Value2 is not a parameterized property.

The following code example uses the Value2 property to set the value of a NamedRange to a value obtained from the AutoComplete method.

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: