Re: Unable to add columns
Hi, just right click on your ListView, click Properties then select the "Column Headers" tab, you can set your columns easier there. :)
Re: Unable to add columns
Quote:
' Create the column headers.
Set column_header = ListView1. _
ColumnHeaders.Add(, , "Abbrev", _
TextWidth("Abbrev"))
Set column_header = ListView1. _
ColumnHeaders.Add(, , "Title", _
TextWidth("Ready-to-Run Visual Basic Algorithms"))
Set column_header = ListView1. _
ColumnHeaders.Add(, , "ISBN", _
TextWidth("0-000-00000-0"))
The above code adds the 3 column headers (means columns)....
Can you point out what exactly you want or what is the error??? :)
Re: Unable to add columns
Quote:
Hi, just right click on your ListView, click Properties then select the "Column Headers" tab, you can set your columns easier there.
Greeny is right. But if you want to add the columns at runtime, then the code in the first post is useful... :)
Re: Unable to add columns
Hi,
The problem here is, althogh i know I have added the columns. But as per the code, the data should go into repective columns.
Nothing as such happens.
I get the output as
VBA VBGP CCL AVBT
But I guess, it should appear as
VBA Ready-to-Run Visual Basic Algorithms 0-471-24268-3
VBGP Visual Basic Graphics Programming 0-471-15533-0
CCL Custom Controls Library 0-471-24267-5
ABVT Advanced Visual Basic Techniques 0-471-18881-6
Please help.
Regards,
Sushant
Re: Unable to add columns
Change the View property of Listview1 to lvwReport
Re: Unable to add columns
Hi,
Thanks a lot Abhishek.
U solved my problem.
Sushant
Re: Unable to add columns
Quote:
Hi,
Thanks a lot Abhishek.
U solved my problem.
Sushant
Not Abhishek ;), it is Akhilesh..... Akhilesh B Chandran
Happy to hear that... :D