Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
ben ben is offline
external usenet poster
 
Posts: 232
Default trap arrow key press in userform

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

--
When you lose your mind, you free your life.
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default trap arrow key press in userform

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.


--
Regards,
Tom Ogilvy

"ben" (remove this if mailing direct) wrote in message
...
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

--
When you lose your mind, you free your life.



  #3   Report Post  
Posted to microsoft.public.excel.programming
ben ben is offline
external usenet poster
 
Posts: 232
Default trap arrow key press in userform

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

--
When you lose your mind, you free your life.


"Tom Ogilvy" wrote:

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.


--
Regards,
Tom Ogilvy

"ben" (remove this if mailing direct) wrote in message
...
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

--
When you lose your mind, you free your life.




Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
why dont shift+arrow or ctrl+arrow work in 2007 Naguib Excel Discussion (Misc queries) 1 July 24th 07 04:40 PM
how can I trap the change event (Tab Press key) of these controls Padam Excel Worksheet Functions 1 August 10th 06 03:59 PM
how can I trap the change event (Tab Press key) of these controls Padam Excel Worksheet Functions 0 August 10th 06 02:41 PM
Trap whether it was TAB or arrow keys etc HotRod Excel Programming 3 April 29th 05 07:23 PM
Arrow key operation among multiple TextBoxes in a UserForm George[_26_] Excel Programming 9 March 14th 05 02:13 AM


All times are GMT +1. The time now is 07:04 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"