Posted to microsoft.public.excel.programming
|
|
Adding months to a Date in VBA
Take a look at Chip Pearson's site about dates
http://www.cpearson.com/excel/datearith.htm
Mike F
"kdw" wrote in message
...
I need to add months to a date. For example, 4/2/04 + 6 months to give
10/2/04.
I have seen examples of how to add months such as:
=MIN(DATE(YEAR(A1),MONTH(A1)+48,DAY(A1));DATE(YEAR (A1),MONTH(A1)+1+48,0))
But Date() means something different in VBA than in Excel. Is there
another
solution?
Thanks.
|