ID: Q182812
The information in this article applies to:
Microsoft Excel 98 includes a new Visual Basic for Applications property called Value2. The Value2 property, which you can use for the Range object, is almost identical to the Value property except that the Value2 property does not use the Currency and Date data types. Depending on how a cell is formatted (for example, with date, currency, or other formats), the two properties may return different values for the same cell.
Note that the Value2 property is not available in earlier versions of Microsoft Excel. Therefore, if a cell is formatted with a currency number format or a date number format, the Value property may not return the expected underlying cell value.
Microsoft provides programming examples for illustration only, without warranty either expressed or implied, including, but not limited to, the implied warranties of merchantability and/or fitness for a particular purpose. This article assumes that you are familiar with the programming language being demonstrated and the tools used to create and debug procedures. Microsoft support professionals can help explain the functionality of a particular procedure, but they will not modify these examples to provide added functionality or construct procedures to meet your specific needs. If you have limited programming experience, you may want to contact the Microsoft fee-based consulting line at (800) 936-5200. For more information about the support options available from Microsoft, please see the following page on the World Wide Web:
   http://www.microsoft.com/supportnet/refguide/ 
1. Close and save any open workbooks, and then create a new workbook.
2. Enter the following in Sheet1:
      A1: 1.23456789
      A2: 2/3/97
   tab, click Currency in the Category list, and click OK.
5. Click the Number tab, click Date in the Category list, and click
   OK.
7. On the Insert menu, click Module.
8. Enter the following code in the Visual Basic module:
      Sub Value_vs_Value2()
         MsgBox "Currency returned by Value property = " & _
            Sheet1.Range("A1").Value
         MsgBox "Currency returned by Value2 property = " & _
            Sheet1.Range("A1").Value2
         MsgBox "Date returned by Value property = " & _
            Sheet1.Range("A2").Value
         MsgBox "Date returned by Value2 property = " & _
            Sheet1.Range("A2").Value2
      End Sub
   menu. Click Value_vs_Value2 and click Run.
   Currency returned by Value property =  1.2346
   Currency returned by Value2 property = 1.23456789
   Date returned by Value property = 2/3/97
   Date returned by Value2 property = 34002
The underlying cell value in cell A2 is the serial number for 2/3/97, which is 34002. The Value property returns a date formatted with the short date format. The Value2 property, for cells formatted as a date, returns the underlying serial number for the date.
For more information about using the Value2 property, click the Office Assistant, type "value2" (without the quotation marks), click Search, and then click to view the "Value2 Property" topic.
NOTE: If the Assistant is hidden, click the Office Assistant button on the Standard toolbar. If Visual Basic for Applications Help is not installed on your computer, please see the following article in the Microsoft Knowledge Base:
   ARTICLE-ID: Q120802
   TITLE     : Office: How to Add/Remove a Single Office
               Program or Component
Keywords          : kbprg OffVBA 
Version           : MACINTOSH:98
Platform          : MACINTOSH
Issue type        : kbhowtoLast Reviewed: May 18, 1999