Hi All
I am trying to write a vba code for calcuating dates. While the details are as follows
A1 : 01-05-2013
B1: 2 (2 being the number of years)
C1 : I have inserted a date formula : DATE(YEAR(A1)+B1,MONTH(A1),DAY(A1)-1)
So that in C1 i can have 30 -04-2015 which is 1 day less than the Exactly two years. While i try to write the same at VBA level it doesnt work.
Help Required please. I have an exam tomrrowPlease Login or Register to view this content.
Bookmarks