Private Sub Command1_Click()Dim y%y = Val(InputBox("请输入年份"))If (y Mod 4 = 0 And y Mod 100 <> 0) Or y Mod 400 = 0 Then MsgBox (CStr(y) + "是润年")Else MsgBox (CStr(y) + "不是闰年")End IfEnd Sub