userform with combobox for date and listbox for information display.
Private Sub cboDate_Change()
Dim lngRow As Long
Dim lngIndex As Long
Dim lngCol As Long
lngCol = cboDate.ListIndex + 5
lngRow = 3
With Sheet1
For lngIndex = 0 To lisUsers.ListCount - 1
lisUsers.List(lngIndex, 1) = .Cells(lngRow, lngCol)
lisUsers.List(lngIndex, 2) = .Cells(lngRow + 1, lngCol)
lngRow = lngRow + 4
Next
End With
End Sub
Private Sub CommandButton1_Click()
Unload Me
End Sub
Private Sub UserForm_Initialize()
Dim lngDay As Long
Dim lngRow As Long
With Sheet1
For lngDay = .Range("E2") To .Range("AI2")
Me.cboDate.AddItem Format(lngDay, "d/ (ddd)")
Next
Me.lisUsers.ColumnCount = 3
For lngRow = 3 To .Cells(.Rows.Count, 1).End(xlUp).Row Step 4
Me.lisUsers.AddItem .Cells(lngRow, 2)
Next
End With
cboDate.ListIndex = 0
End Sub
Bookmarks