Intercept the cell 1 in first row in listview

User avatar
sal21
PlatinumLounger
Posts: 4519
Joined: 26 Apr 2010, 17:36

Intercept the cell 1 in first row in listview

Post by sal21 »

How to assign to MyVar the value of row 1, col 11 in listview...
In this case is the value signed with arrow

User avatar
HansV
Administrator
Posts: 79561
Joined: 16 Jan 2010, 00:14
Status: Microsoft MVP
Location: Wageningen, The Netherlands

Re: Intercept the cell 1 in first row in listview

Post by HansV »

MyVar = Me.ListView1.ListItems(1).ListSubItems(11)

where ListView1 is the name of the listview control.
Best wishes,
Hans