B
baobob
Last year my question of what TreeView's KeyDown event's syntax is was
unanswered. After a lot of trial & error, it is:
TreeView1_KeyDown(KeyCode As Integer, ByVal Shift As Integer)
VBA help *wrongly* says KeyDown(KeyCode As Integer, Shift As Integer).
(And expected syntax KeyDown(ByVal KeyCode As MSForms.ReturnInteger,
ByVal Shift As Integer) is equally wrong. TreeView belongs to
MSComCtlLib, not MSForms. MSComCtlLib has no object like
"ReturnInteger", etc.)
A small repayment for all ye Knights of the Group who've helped me in
the past.
***
unanswered. After a lot of trial & error, it is:
TreeView1_KeyDown(KeyCode As Integer, ByVal Shift As Integer)
VBA help *wrongly* says KeyDown(KeyCode As Integer, Shift As Integer).
(And expected syntax KeyDown(ByVal KeyCode As MSForms.ReturnInteger,
ByVal Shift As Integer) is equally wrong. TreeView belongs to
MSComCtlLib, not MSForms. MSComCtlLib has no object like
"ReturnInteger", etc.)
A small repayment for all ye Knights of the Group who've helped me in
the past.
***