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 :eeek:
<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

How to calculate loan payments in Excel?
Use the PMT function: =PMT(5%/12,60,-25000) is for a $25,000 loan, 5% annual interest, 60 month loan.

Forum statistics

Threads
1,224,823
Messages
6,181,175
Members
453,021
Latest member
Justyna P

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