OnKey keeps running a macro although it has been reassigned to its normal use.

guidoa961

New Member
Joined
Jun 4, 2018
Messages
6
Hope someone can help me with the problem mentioned in "Title".
Here is what I do and what happens:
1. I assign Proc1 to Application.OnKey "{UP}", command is Application.OnKey "{UP}", "Proc1"
2. when I hit the up arrow key Proc1 is run and does what I want.
3. I reassign Application.OnKey "{UP}" to its normal use, command is Application.OnKey "{UP}"
4. when I hit the up arrow key Proc1 keeps being run :eek:
<strike></strike>
It is as if the combination of "Up arrow key" and "Proc1" is saved somewhere and no command can change it except Application.OnKey "{UP}", ""

Has anyone run into the same problem and has a solution for it?
Thank you for your much needed help.
 

Excel Facts

Why does 9 mean SUM in SUBTOTAL?
It is because Sum is the 9th alphabetically in Average, Count, CountA, Max, Min, Product, StDev.S, StDev.P, Sum, VAR.S, VAR.P.
The problem has been solved; it had nothing to do with
Application.OnKey. Thanks to all of you.
 
Upvote 0

Forum statistics

Threads
1,214,430
Messages
6,119,454
Members
448,898
Latest member
drewmorgan128

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top