Hi all,
Been a while...
Thought i had it figured out, but discovered that Excel Worksheet formula and Excel VBA do not seem to calculate one year from a leap day the same.
In a spreadhseet, i have :
Which, in my mind, is correct and the value i want.
However, when using the following formula in a UserForm control:
the result is "02/28/2025"
I have tried a number of variations but cannot seem to get VBA to return 3/1/2025.
I need to stay away from adding 365/366 days or "add one year plus one day"...
Any thoughts on why they work differently? and a possible solution?
Chris
Been a while...
Thought i had it figured out, but discovered that Excel Worksheet formula and Excel VBA do not seem to calculate one year from a leap day the same.
In a spreadhseet, i have :
Which, in my mind, is correct and the value i want.
However, when using the following formula in a UserForm control:
the result is "02/28/2025"
I have tried a number of variations but cannot seem to get VBA to return 3/1/2025.
I need to stay away from adding 365/366 days or "add one year plus one day"...
Any thoughts on why they work differently? and a possible solution?
Chris