A year that is a multiple of 4 is a leap year. However, it was also concluded that a year that is a multiple of 100 should not be a leap year, unless it is also a multiple of 400. - Any problem with the below code?
If ((Range("Score").Value Mod 4 = 0) And (Range("Score").Value Mod 100 <> 0)) Or _
((Range("Score").Value Mod 100 = 0) And (Range("Score").Value Mod 400 <> 0)) Then
MsgBox Range("Score").Value & " is a leap year."
Else
MsgBox Range("Score").Value & " is not a leap year."
End If
If ((Range("Score").Value Mod 4 = 0) And (Range("Score").Value Mod 100 <> 0)) Or _
((Range("Score").Value Mod 100 = 0) And (Range("Score").Value Mod 400 <> 0)) Then
MsgBox Range("Score").Value & " is a leap year."
Else
MsgBox Range("Score").Value & " is not a leap year."
End If