I would like to know, I have listview column header, how I can sent this column header to the listbox, because I want only selected column header in the listbox to print out on the document.Have idea or sample to start?
Printable View
I would like to know, I have listview column header, how I can sent this column header to the listbox, because I want only selected column header in the listbox to print out on the document.Have idea or sample to start?
I hope the same answer to your other thread would solve this too...anyway here it isvb Code:
List1.AddItem Form5.ListView2.ColumnHeaders(1).Text
It work, But how I can get all listview column header without specific the number to the listbox?
Code:List1.AddItem Form5.ListView2.ColumnHeaders(1).Text
vb Code:
For i = 1 To ListView2.ColumnHeaders.Count - 1 List1.AddItem ListView2.ColumnHeaders(i).Text Next
:thumb: In my listbox, I found that you miss one field name at the end of the listview, so I modify to this, and it works contains all listview column header. Thank you. I rate you :bigyello:
Code:
For i = 1 To Form5.ListView2.ColumnHeaders.Count
List1.AddItem Form5.ListView2.ColumnHeaders(i).Text
Next i
OH sorry for that...Quote:
Originally Posted by matrik02
Thank youQuote:
Originally Posted by matrik02