John Vinson said:
There is now:
Public Function EOMonth(dtDate As Variant) As Variant
If Not IsNull(dtDate) Then
EOMonth = DateSerial(Year(dtDate), Month(dtDate) + 1, 0)
End If
End Sub
Not quite, John.
From Excel help:
Returns the serial number date for the last day of the month that is the
indicated number of months before or after start_date. Use EOMONTH to
calculate maturity dates or due dates that fall on the last day of the
month.
Syntax
EOMONTH(start_date,months)
Start_date is a date that represents the start date.
Months is the number of months before or after start_date. A positive
value for months yields a future date; a negative value yields a past date.
However, this question was multiposted, and I'm sure I answered it correctly
in one of the (many) other newsgroups to which it was posted.