只需要知道某年一个生肖,即可推算
Dim year As Integer = 2018Dim sx As String = "鼠牛虎兔龙蛇马羊猴鸡狗猪"Dim tmp As Integer = year - 2008If year < 2008 Then msgbox(sx(tmp Mod 12 + 12))Else msgbox(sx(tmp Mod 12))End If
如果要转换新历为农历,参考 http://www.foxtable.com/webhelp/scr/1274.htm