We help IT Professionals succeed at work.
Get Started

In VBA how to I restore the Enter key to its original behavior after remapping it?

shampouya
shampouya asked
on
464 Views
Last Modified: 2016-02-11
I used Application.OnKey to change the behavior of the Enter key. But once I tried to remove that behavior using the below, the enter keys no longer move the active cell one cell down as they do normally when pressed. How do I restore that without rebooting Excel?

Application.OnKey "~", ""
Application.OnKey "{ENTER}", ""

Open in new window

Comment
Watch Question
Social distance; Wear a mask; Get vaccinated
CERTIFIED EXPERT
Top Expert 2014
Commented:
This problem has been solved!
Unlock 1 Answer and 2 Comments.
See Answer
Why Experts Exchange?

Experts Exchange always has the answer, or at the least points me in the correct direction! It is like having another employee that is extremely experienced.

Jim Murphy
Programmer at Smart IT Solutions

When asked, what has been your best career decision?

Deciding to stick with EE.

Mohamed Asif
Technical Department Head

Being involved with EE helped me to grow personally and professionally.

Carl Webster
CTP, Sr Infrastructure Consultant
Ask ANY Question

Connect with Certified Experts to gain insight and support on specific technology challenges including:

  • Troubleshooting
  • Research
  • Professional Opinions
Did You Know?

We've partnered with two important charities to provide clean water and computer science education to those who need it most. READ MORE