Here is the syntax for TreeView.KeyDown().

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.

***
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads


Top