Как найти Leapyear в VBA?

public function isLeapYear (yr as integer) as boolean
    isLeapYear   = false
    if (mod(yr,400)) = 0 then isLeapYear  = true
    elseif (mod(yr,100)) = 0 then isLeapYear  = false
    elseif (mod(yr,4)) = 0 then isLeapYear  = true
end function

В Википедии подробнее... http://en.wikipedia.org/wiki/Leap_year

excel-macro

function

vba

excel

code-snippets

2022-08-09T04:09:08+00:00