Solved

List Box with multiple columns??

Posted on 1998-07-14
5
182 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

Instantly Create Instructional Tutorials

Contextual Guidance at the moment of need helps your employees adopt to new software or processes instantly. Boost knowledge retention and employee engagement step-by-step with one easy solution.

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…
Since upgrading to Office 2013 or higher installing the Smart Indenter addin will fail. This article will explain how to install it so it will work regardless of the Office version installed.
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
Get people started with the process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…
Suggested Courses
Course of the Month11 days, 5 hours left to enroll

631 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