Solved

List Box with multiple columns??

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

Top 6 Sources for Identifying Threat Actor TTPs

Understanding your enemy is essential. These six sources will help you identify the most popular threat actor tactics, techniques, and procedures (TTPs).

Join & Write a Comment

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…
You can of course define an array to hold data that is of a particular type like an array of Strings to hold customer names or an array of Doubles to hold customer sales, but what do you do if you want to coordinate that data? This article describes…
Get people started with the process of using Access VBA to control Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…
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…

757 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

Need Help in Real-Time?

Connect with top rated Experts

19 Experts available now in Live!

Get 1:1 Help Now