Share via


Range.Value2 Property

Returns or sets the cell value.

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

Syntax

'Declaration
Property Value2 As Object
    Get
    Set
'Usage
Dim instance As Range
Dim value As Object

value = instance.Value2

instance.Value2 = value
Object Value2 { get; set; }

Property Value

Type: System.Object

Remarks

The only difference between this property and the Value property is that the Value2 property doesn’t use the Currency and Date data types. You can return values formatted with these data types as floating-point numbers by using the Double data type.

See Also

Reference

Range Interface

Range Members

Microsoft.Office.Interop.Excel Namespace