Not sure if it's a big deal, but the drop down box is text entry (i.e. January etc...) but the database is numerical entry (i.e. 1/1/1980)
Huge deal. A sample workbook showing your formats and column/row locations would have been more helpful. I am going to assume on a lot of things. If it doesn't work it is because one of my many assumptions/guesses was wrong. Best of luck.
Private Sub SearchButton1_Click()
Dim ws As Worksheet: Set ws = Sheets("Sheet1")
Dim rDates As Range, rCell As Range
Dim str As String
Dim iMonth As Integer
Set rDates = ws.Range("A2:A" & ws.Range("A" & Rows.Count).End(xlUp).Row)
Select Case ComboBox1.Value
Case Is = "January"
iMonth = 1
Case Is = "February"
iMonth = 2
Case Is = "March"
iMonth = 3
Case Is = "April"
iMonth = 4
'etc
'etc
'etc
End Select
For Each rCell In rDates
If Len(rCell) <> 0 And Month(rCell.Value) = iMonth Then
If str = "" Then
str = rCell.Offset(0, 1) 'names in column B
Else
str = str & Chr(10) & rCell.Offset(0, 1)
End If
End If
Next rCell
MsgBox str
str = ""
End Sub
Bookmarks