K
Kevin
Hello
This is driving me insane! I have a macro that enters a
date value into a cell using the following line:
Cells(x,y).value = Format(Date, "dd/mm/yyyy")
That works great, however the value is entered into the
cell as a string, like "25/04/2004", and not a date. Is
there anything i'm doing wrong? I know that It's a string
because the value is left justified in the cell, and Excel
throws a #VALUE! at me if I try to perform any arithmetic
on the value.
I've also tried
Cells(x,y).value = Format(Now, "dd/mm/yyyy")
Which give the same result!
Any Ideas gratefully recieved!
TIA, Kevin
This is driving me insane! I have a macro that enters a
date value into a cell using the following line:
Cells(x,y).value = Format(Date, "dd/mm/yyyy")
That works great, however the value is entered into the
cell as a string, like "25/04/2004", and not a date. Is
there anything i'm doing wrong? I know that It's a string
because the value is left justified in the cell, and Excel
throws a #VALUE! at me if I try to perform any arithmetic
on the value.
I've also tried
Cells(x,y).value = Format(Now, "dd/mm/yyyy")
Which give the same result!
Any Ideas gratefully recieved!
TIA, Kevin