AlexanderBB
Well-known Member
- Joined
- Jul 1, 2009
- Messages
- 2,072
- Office Version
- 2019
- 2010
- Platform
- Windows
I need the row number clicked in Excel ListView control.
Does anyone have a solution ? All I can find is
The last message there has some code but it won't work for me.
Error is variable not found on 'Screen'
Which is quite right as 'Screen' isn't mentioned. May be connected to instructions in the declarations area which I don't follow.
Can anyone help, thank you.
Does anyone have a solution ? All I can find is
Getting column index of clicked column of listview
I did not find a native procedure to retrieve the index of the column, the info that is here: ListView1.ListItems.Item (ListView1.SelectedItem.Index) .ListSubItems (HERE) I know how to get the in...
stackoverflow.com
Error is variable not found on 'Screen'
VBA Code:
With hitTest
.flags = LVHT_ONITEM
.pt.x = (x \ Screen.TwipsPerPixelX)
.pt.y = (y \ Screen.TwipsPerPixelY)
End With
Can anyone help, thank you.