Hi,
It's not clear from your post what you want.
Edate formula
=EDATE(A1,1)
VB equivalent
mydate = DateAdd("m", 1, Range("a1").Value)
On the worksheet without ATP
=DATE(YEAR(A1),MONTH(A1)+1,DAY(A1))
Mike
Your worksheet formula doesn't work; try the date 31/01/2008 ("dd/mm/
yyyy") (It returns 02/03/2008 ("dd/mm/yyyy") - where 29/02/2008 ("dd/
mm/yyyy") is the correct date.
I do believe
=MIN(DATE(YEAR(Range("a1").Value),MONTH(Range("a1").Value)
+1,DAYRange("a1").Value)),
DATE(YEAR(Range("a1").Value),MONTH(Range("a1").Value)+1+1,0))
works as a charm. I made that one in VBA - not realizing I could have
use DateAdd