On Tue, 24 Feb 2009 06:48:56 -0500, "Mike Fogleman" <(E-Mail Removed)>
wrote:
>Be careful if you extract the year and add 1 to it. You wouldn't want Feb
>29, 2008 to become Feb 29, 2009. Add the 365 days to the Date instead of
>changing the year.
How, exactly, did you get a result of Feb 29, 2009?
Although you may get unexpected answers adding 1 year to the 29-feb-2008,
(i.e., depending on your method, either 28-feb-2009 or 1-mar-2009), I don't see
how you obtained a result of 29-feb-2009.
To the best of my knowledge, neither the Date data type, nor a worksheet cell
formatted as Date, will support a date of 29-feb-2009.
I suppose you could construct a text string, but that would not be recognized
or used as a date by either VBA or Excel.
--ron
|