Hello,
I am using MS Excel 2002, I want to add one day to a date using the DateAdd function. So I have the following:
In the cell I want to contain the new value I have
The Cell K2 has a value of 01/02/07, the cell is formatted as a date. When I step through the code and I type ?LDate in the immediate window I see 01/03/07, but the value in the cell shows as 01/00/00. Any idea why?
Thanks,
I am using MS Excel 2002, I want to add one day to a date using the DateAdd function. So I have the following:
Code:
Function Add_A_Day(CellValue As Date)
Dim LDate As Date
LDate = DateAdd("d", 1, CellValue)
End Function
In the cell I want to contain the new value I have
Code:
=Add_A_Day(k2)
Thanks,