Function myMonth(myDate As Date) As Long
If myDate <= DateSerial(2007, 2, 6) And myDate >= DateSerial(2007, 1, 5) Then myMonth = 1
If myDate <= DateSerial(2007, 3, 5) And myDate >= DateSerial(2007, 2, 7) Then myMonth = 2
If myDate <= DateSerial(2007, 4, 8) And myDate >= DateSerial(2007, 3, 6) Then myMonth = 3
End Function