View Single Post
  #23   Report Post  
Posted to microsoft.public.excel.misc
Rick Rothstein \(MVP - VB\)[_800_] Rick Rothstein \(MVP - VB\)[_800_] is offline
external usenet poster
 
Posts: 1
Default Determining a leap year

And if you wanted to find leap years in the 19th century, Rick?

In a worksheet? Using a worksheet formula? Well, I guess that question could
be asked academically (given that none of those dates could be used within
the worksheet); but, personally, I would probably use this UDF (which also
works as a VB function as well)...

Function IsLeapYear(YearIn As Long) As Boolean
IsLeapYear = IsDate("2/29/" & YearIn)
End Function

Rick