Last KeyStroke

  • Thread starter Thread starter Mike H.
  • Start date Start date
M

Mike H.

Is there a way VBA can tell the last keystroke that a user entered? Here is
what I want to do:
If the user hits enter, instead of going down one row, I wish to go across
one column. But if they press the arrow keys, then I don't want to "alter"
their choice.

So if they press the down arrow, they go down one cell, but if they press
the enter key they go right one cell. Ideas?
 
Is there a way VBA can tell the last keystroke that a user entered?  Here is
what I want to do:
If the user hits enter, instead of going down one row, I wish to go across
one column.  But if they press the arrow keys, then I don't want to "alter"
their choice.  

So if they press the down arrow, they go down one cell, but if they press
the enter key they go right one cell.  Ideas?

Google "OnKey events"...

or check out this

http://msdn.microsoft.com/en-us/library/aa195807(office.11).aspx
 

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

Back
Top