Hello,
I'm using VBA to add strings to a listview. The Listview control I'm using is Microsoft LisView Control 6.0 (SP4).
order_AN76.ListItems.Add 1 ,"a" , 1
order_AN76.ListItems(1).SubItems(1)="1"
order_AN76.ListItems(1).SubItems(2)="1"
order_AN76.ListItems(1).SubItems(3)="1"
order_AN76.ListItems(1).SubItems(4)="1"
order_AN76.ListItems.add 2 ,"b" , 2
order_AN76.ListItems(2).SubItems(1)="2"
order_AN76.ListItems(2).SubItems(2)="2"
order_AN76.ListItems(2).SubItems(3)="2"
order_AN76.ListItems(2).SubItems(4)="2"
...
The result will be:
1 1 1 1 1
2 2 2 2 2
order_AN76 is the Listview. I do not understand why I need to write "a" , "b" ... ?
Best Regards Gustaf
I'm using VBA to add strings to a listview. The Listview control I'm using is Microsoft LisView Control 6.0 (SP4).
order_AN76.ListItems.Add 1 ,"a" , 1
order_AN76.ListItems(1).SubItems(1)="1"
order_AN76.ListItems(1).SubItems(2)="1"
order_AN76.ListItems(1).SubItems(3)="1"
order_AN76.ListItems(1).SubItems(4)="1"
order_AN76.ListItems.add 2 ,"b" , 2
order_AN76.ListItems(2).SubItems(1)="2"
order_AN76.ListItems(2).SubItems(2)="2"
order_AN76.ListItems(2).SubItems(3)="2"
order_AN76.ListItems(2).SubItems(4)="2"
...
The result will be:
1 1 1 1 1
2 2 2 2 2
order_AN76 is the Listview. I do not understand why I need to write "a" , "b" ... ?
Best Regards Gustaf