HarleyQuinn
---------------------------------
The most overlooked advantage to owning a computer is that if they foul up there's no law against wacking them around a little. - Joe Martin
Get the most out of Tek-Tips, read FAQ222-2244 before posting.
The reason I asked how you're populating the listbox was because the VB6 Listbox doesn't support multi-columns natively.
Are you using VBA?
HarleyQuinn
---------------------------------
The most overlooked advantage to owning a computer is that if they foul up there's no law against wacking them around a little. - Joe Martin
Get the most out of Tek-Tips, read FAQ222-2244 before posting.
As I say, the Listbox doesn't support multiple columnns. What you're doing there is using tabs to make it look like there are columns, there's only one column for each entry.
What you can do is something like this
Code:
Debug.Print Split(List1.List(0), vbTab)(1)
That splits the row on vbTab and the bracketed number at the end specifies the 'column' value you want to return (zero based). So my example would print the second 'column' of the first row of data.
Hope this helps
HarleyQuinn
---------------------------------
The most overlooked advantage to owning a computer is that if they foul up there's no law against wacking them around a little. - Joe Martin
Get the most out of Tek-Tips, read FAQ222-2244 before posting.
HarleyQuinn
---------------------------------
The most overlooked advantage to owning a computer is that if they foul up there's no law against wacking them around a little. - Joe Martin
Get the most out of Tek-Tips, read FAQ222-2244 before posting.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.