Hi Jenny,
Missed a divide by 4
Case 2
If Int(DatePart("yyyy", mydate) / 4) - DatePart("yyyy", mydate)/4 = 0 Then
Gerrys = 29
Else
Gerrys = 28
Sorry but Mike's look...
Hi Jenny,
Try this
In Module. add new
put in the code below
Function DaysofMonth(mydate)
If IsDate(mydate) Then
If DatePart("m", mydate) = 1 Then
DaysofMonth = 31
ElseIf DatePart("m", mydate) = 2 Then
If Int(DatePart("yyyy", mydate) / 4) -...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.