I am using Excel 97 SR-2 on Windows NT4 SP6.
System regional settings are English (UK) with short date format of dd/MM/yy and long date format of dd MMMM yyyy.
My VB code is :
ActiveCell.NumberFormat = "dd/mm/yyyy"
ActiveCell.Value = "01/02/2003"
This displays as 02/01/2003
but
ActiveCell.NumberFormat = "mm/dd/yy"
ActiveCell.Value = "01/02/2003"
This displays as 01/02/2003
ie, in either case, Excel insists on inverting my date. I get the same effect changing the cell format through menu commands.
!!!!!!!!!
Could somebody please explain?
System regional settings are English (UK) with short date format of dd/MM/yy and long date format of dd MMMM yyyy.
My VB code is :
ActiveCell.NumberFormat = "dd/mm/yyyy"
ActiveCell.Value = "01/02/2003"
This displays as 02/01/2003
but
ActiveCell.NumberFormat = "mm/dd/yy"
ActiveCell.Value = "01/02/2003"
This displays as 01/02/2003
ie, in either case, Excel insists on inverting my date. I get the same effect changing the cell format through menu commands.
!!!!!!!!!
Could somebody please explain?