I am trying to create a userform to search for a person in a 10000 entry excel, using any of the NO, Firstname, lastname, username or email column.
I can search. However, when the listbox displays the data, it only displays the first column, and not any of the other 4 columns.
Thank you.
Private Sub SearchCommand_Click()
Me.ResultListbox.AddItem
For a = 1 To 5
Me.ResultListbox.List(0, a - 1) = Sheet1.Cells(1, a)
Next a
Me.ResultListbox.Selected(0) = True
End sub