NamedRange.get_Value Method (Object)


Gets the value of the NamedRange control.

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

object get_Value(
	object rangeValueDataType


Type: System.Object

One of the XlRangeValueDataType values that specifies the data type of the range value. The default is xlRangeValueDefault. This parameter is optional in Visual Basic.

Return Value

Type: System.Object

The value of the NamedRange control.

If you do not need to specify the RangeValueDataType parameter, you can use the Value property instead of this method.

For information on optional parameters, see Optional Parameters in Office Solutions.

Return to top