Given this list in excel:
How can I filter the rows (base on the date of birth column) when a user selects the name of the month? This is what I have done so far but I have no idea how to manipulate the DOB column:
Private Sub ComboBox2_Change()
On Error Resume Next
If Me.ComboBox2.Value = "<<All>>" Or Me.ComboBox2.Value = "" Then
If ActiveSheet.AutoFilterMode Then ActiveSheet.AutoFilterMode = False
Else
Sheet1.Range("D4").AutoFilter field:=4, Criteria1:=Me.ComboBox2.Value
End If
End Sub
I don't have any idea what should I put on Criteria1.
