Solved

List Box with multiple columns??

Posted on 1998-07-14
5
181 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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 50 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

Online Training Solution

Drastically shorten your training time with WalkMe's advanced online training solution that Guides your trainees to action. Forget about retraining and skyrocket knowledge retention rates.

Question has a verified solution.

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

When trying to find the cause of a problem in VBA or VB6 it's often valuable to know what procedures were executed prior to the error. You can use the Call Stack for that but it is often inadequate because it may show procedures you aren't intereste…
When designing a form there are several BorderStyles to choose from, all of which can be classified as either 'Fixed' or 'Sizable' and I'd guess that 'Fixed Single' or one of the other fixed types is the most popular choice. I assume it's the most p…
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…
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…

752 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