trap arrow key press in userform

G

Guest

does anyone know a way to trap the pressing of arrow keys in a userform

OnKey method will not trigger in userform and keypress event for textboxes
returns nothing for arrow keys

any other ideas? Please
ben
 
T

Tom Ogilvy

what about keyup and keydown?

from help on these events:

The KeyDown and KeyUp events are typically used to recognize or distinguish
between:

a.. Navigation keys, such as HOME, END, PAGEUP, PAGEDOWN, UP ARROW, DOWN
ARROW, RIGHT ARROW, LEFT ARROW, and TAB.
 
G

Guest

Yay for Tom!!
now i feel stupid I should have tried that first before coming begging for
help
thank you sir
ben
 

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

Top