I'm messing around with VBA, especially with listboxes.
I've created a search button, that's using a find property (.Find) and searches whatever we've put in the textbox in it's data table.
It can add the search results to a listbox, but if we want the entire row from where search result is, how do we add it, instead of doing something like this vba listbox multicolumn add?
How can it be done, using VBA?
Is it even possible?
Else, is it possible without VBA?
What is happening:
Data table: a | b | c | d | e
1 | 2 | 3 | 4 | 5
Search: a
Listbox : a
Search: 1
Listbox : 1
Search: 2
Listbox : 2
Search: d
Listbox : d
What I "want":
Data table: a | b | c | d | e
1 | 2 | 3 | 4 | 5
Search: a
Listbox: a | b | c | d | e
Search: 1
Listbox: 1 | 2 | 3 | 4 | 5
Search: 2
Listbox: 1 | 2 | 3 | 4 | 5
Search: d
Listbox: a | b | c | d | e
If it's needed I can provide the code I am using for testing the search.