看看这段根据日期计算星座的代码有没有问题。
Public Function funcWhatConstellation(iMonthNum As Integer, iDayNum As Integer) As Integer
''以下是各星座对应函数返回代码和星座日期
'' 1魔羯座(12/22-01/19) 2水瓶座(01/20-02/18) 3双鱼座(02/19-03/20)
'' 4白羊座(03/21-04/19) 5金牛座(04/20-05/20) 6双子座(05/21-06/21)
'' 7巨蟹座(06/22-07/22) 8狮子座(07/23-08/22) 9处女座(08/23-09/22)
''10天秤座(09/23-10/23) 11天蝎座(10/24-11/22) 12射手座(11/23-12/21)
Select Case iMonthNum
Case 1
If iDayNum <= 19 Then
funcWhatConstellation = 1
Else
funcWhatConstellation = 2
End If
Case 2
If iDayNum <= 18 Then
funcWhatConstellation = 2
Else
funcWhatConstellation = 3
End If
Case 3
If iDayNum <= 20 Then
funcWhatConstellation = 3
Else
funcWhatConstellation = 4
End If
Case 4
If iDayNum <= 19 Then
funcWhatConstellation = 4
Else
funcWhatConstellation = 5
End If
Case 5
If iDayNum <= 20 Then
funcWhatConstellation = 5
Else
funcWhatConstellation = 6
End If
Case 6
If iDayNum <= 21 Then
funcWhatConstellation = 6
Else
funcWhatConstellation = 7
End If
Case 7
If iDayNum <= 22 Then
funcWhatConstellation = 7
Else
funcWhatConstellation = 8
End If
Case 8
If iDayNum <= 22 Then
funcWhatConstellation = 8
Else
funcWhatConstellation = 9
End If
Case 9
If iDayNum <= 22 Then
funcWhatConstellation = 9
Else
funcWhatConstellation = 10
End If
Case 10
If iDayNum <= 23 Then
funcWhatConstellation = 10
Else
funcWhatConstellation = 11
End If
Case 11
If iDayNum <= 22 Then
funcWhatConstellation = 11
Else
funcWhatConstellation = 12
End If
Case 12
If iDayNum <= 21 Then
funcWhatConstellation = 12
Else
funcWhatConstellation = 1
End If
End Select
End Function