Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

List Box with multiple columns??

Posted on 1998-07-14
5
Medium Priority
?
184 Views
Last Modified: 2012-05-04
Hi !
I need help with this problem. I have a file(an excel worksheet) which has to be a  data source for a list box. How do I make the list box a multi column one so that all the columns in the worksheet can be displayed. Also, how can I write back the data from the list box to the worksheet. I intend to use the list box to sort the data

Thanks in advance.
Vignesh
0
Comment
Question by:Vignesh071498
5 Comments
 
LVL 2

Expert Comment

by:Jagar
ID: 1465750
Use the ListView Control instead of the Listbox
0
 

Author Comment

by:Vignesh071498
ID: 1465751
Thanks for the tip. But I am unable to find the ListView control. Please help.

Thanks
vignesh
0
 
LVL 4

Expert Comment

by:tomook
ID: 1465752
You can use a grid instead of a list, or go to third party list controls. VB list and combo controls support only one column.
0
 
LVL 6

Accepted Solution

by:
anthonyc earned 100 total points
ID: 1465753
The listview control is part of Microsoft Windows Common Controls.  You should use this, but if you desire, I know how to make tabs works in a listbox as well.  I would recommend the common controls listview.
0
 

Author Comment

by:Vignesh071498
ID: 1465754
Thanks anthonyc for responding. But, how do I add the items to the ListView control? Will the AddItem method work? Also,  after the items are sorted, how to add them back to the file? Could you give me tips? I really appreciate the help.

Thanks
0

Featured Post

[Webinar] Cloud and Mobile-First Strategy

Maybe you’ve fully adopted the cloud since the beginning. Or maybe you started with on-prem resources but are pursuing a “cloud and mobile first” strategy. Getting to that end state has its challenges. Discover how to build out a 100% cloud and mobile IT strategy in this webinar.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

If you have ever used Microsoft Word then you know that it has a good spell checker and it may have occurred to you that the ability to check spelling might be a nice piece of functionality to add to certain applications of yours. Well the code that…
This article describes how to use a set of graphical playing cards to create a Draw Poker game in Excel or VB6.
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…
Suggested Courses

783 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question