In Excel 2010, using VB6.0 TreeView (and NOT using .NET) ... in the TreeView control named tv_CI, I can identify the MOUSE BUTTON that clicked a tv_cI.node via:
Private Sub tv_CI_MouseDown(ByVal Button As Integer, ByVal Shift As Integer, ByVal x As stdole.OLE_XPOS_PIXELS, ByVal y As stdole.OLE_YPOS_PIXELS)
'my code...
End Sub
To identify the node clicked, I can use:
Private Sub tv_CI_NodeClick(ByVal Node As MSComctlLib.Node)
'my code...
End Sub
When these procedures are used together in the same UserForm code, _Mousedown takes precedence and _Nodeclicked does not fire.
How can I gain both the Button value and the Node key when the node is clicked?
Thanks
Kelvin
Our community of experts have been thoroughly vetted for their expertise and industry experience.
The Distinguished Expert awards are presented to the top veteran and rookie experts to earn the most points in the top 50 topics.