Hi Guys,
I would like to know how to print next 20 leap years in vba program
I have a function to find leap year as below, but how to print the years in excel A column can you help me ?
Public Function isLeapYear()
' returns FALSE if not Leap Year, TRUE if Leap Year
isLeapYear = (Month(DateSerial(Yr, 2, 29)) = 2)
End Function
I would like to know how to print next 20 leap years in vba program
I have a function to find leap year as below, but how to print the years in excel A column can you help me ?
Public Function isLeapYear()
' returns FALSE if not Leap Year, TRUE if Leap Year
isLeapYear = (Month(DateSerial(Yr, 2, 29)) = 2)
End Function