sgkdnay
Technical User
- Aug 4, 2008
- 21
Im trying to export data from Listview. I don't think I have enough sleep atm LOL... aside that, goal is to read data from ListView (Clist) like:
Row Name Town
1 John Anywhere
2 Ann Somewhere
3 Jon Whereever
and export it to text, I got the export part parameter, just the reading from listview giving me headache for now. Don't think I got the logic of this correctly. This is what I have so far..
For j = 1 To .ListItems.Count
For k = 1 To .ColumnHeaders.Count
sData = sData + .ListItems(j).SubItems(k) & ";"
If k = 6 Then sData = sData + vbNewLine
Next k
Next j
thanks in advance
Row Name Town
1 John Anywhere
2 Ann Somewhere
3 Jon Whereever
and export it to text, I got the export part parameter, just the reading from listview giving me headache for now. Don't think I got the logic of this correctly. This is what I have so far..
For j = 1 To .ListItems.Count
For k = 1 To .ColumnHeaders.Count
sData = sData + .ListItems(j).SubItems(k) & ";"
If k = 6 Then sData = sData + vbNewLine
Next k
Next j
thanks in advance