Try something like this:
Code:
Sub ageCheck()
Dim bDate As Date
Dim checkDate As Date
Dim diff As Double
Dim absGap As Double
bDate = InputBox("Enter your birthdate as 'mm/dd/yy'")
checkDate = Now 'could be "Now + 1" for tomorrow...
diff = (checkDate - bDate) / 365.25 'account for leap years, not 100% precise
absGap = Abs(18 - diff) 'how big is gap between NOW and birthdate (minus 18 yrs)
If absGap < 0.004 Then 'play with this number
If Month(bDate) <= Month(checkDate) Then
If Day(bDate) <= Day(checkDate) Then
MsgBox "Old enough"
Else
MsgBox "Not old enough"
End If
Else
MsgBox "Not old enough"
End If
Else
If diff >= 18 Then
MsgBox "Old enough to serve drinks"
Else
MsgBox "NOT old enough"
End If
End If
End Sub