tiredofit
Well-known Member
- Joined
- Apr 11, 2013
- Messages
- 1,832
- Office Version
- 365
- 2019
- Platform
- Windows
My worksheet contains two dates.
Cell A1 is 21/01/1900
Cell A2 is 11/01/1900
The "Use 1904 data system" box (found under File -> More -> Options -> Advanced) is UNCHECKED.
When I inspect this code in the Locals window:
why does DataArray(1,1) contain the value:
and DataArray(2,1) contains:
I expected to see:
Thanks
Cell A1 is 21/01/1900
Cell A2 is 11/01/1900
The "Use 1904 data system" box (found under File -> More -> Options -> Advanced) is UNCHECKED.
When I inspect this code in the Locals window:
Code:
Dim DataArray() As Variant
DataArray() = Sheet1.Cells(1, 1).CurrentRegion.Value
why does DataArray(1,1) contain the value:
Code:
#20/01/1900#
and DataArray(2,1) contains:
Code:
#10/01/1900#
I expected to see:
Code:
#21/01/1900#
and
#11/01/1900#
Thanks
Last edited: