GeekInterview.com
Series: Subject: Topic:
Question: 13 of 63

Hello, I would like to do the following. If cell A1 contains "Hello" and if the focus is on A1 and if the Enter key is pressed, then the focus should go to B2 and a MsgBox should appear. I think this can be done with key events, something like OnKeyDown, but how do I tell it I want the event only be triggered by the Enter key?

Thanks, Liglin

Asked by: Interview Candidate | Asked on: Sep 20th, 2005
Showing Answers 1 - 2 of 2 Answers
samitbasu

Answered On : Feb 16th, 2006

View all answers by samitbasu

Use KeyAscii and trap enter(32).

  
Login to rate this answer.
sc

Answered On : Jun 8th, 2007

Trap Enter with ASC code 13 not 32 (which is ASCII code of space)

  
Login to rate this answer.

Give your answer:

If you think the above answer is not correct, Please select a reason and add your answer below.

Related Open Questions

Ads

Connect

twitter fb Linkedin GPlus RSS

Ads

Interview Question

 Ask Interview Question?

 

Latest Questions

Interview & Career Tips

Get invaluable Interview and Career Tips delivered directly to your inbox. Get your news alert set up today, Once you confirm your Email subscription, you will be able to download Job Inteview Questions Ebook . Please contact me if you there is any issue with the download.