Skip to main content

Range.Value2 property

Table of contents
  1. Syntax
  2. Remarks
  3. Example

Returns or sets the cell value. Read/write Variant.

Syntax

expression.Value2

expression A variable that represents a Range 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.

Example

This example uses the Value2 property to add the values of two cells.

Range("a1").Value2 = Range("b1").Value2 + Range("c1").Value2

Leave a comment

Your email address will not be published. Required fields are marked *

Format your code: <pre><code class="language-vba">place your code here</code></pre>