Key assignment has stopped working for F1 key

musicgold

Board Regular
Joined
Jan 9, 2008
Messages
197
I use the following macro to assign my macros to certain keys. For the last few days, I have noticed the 'Jump' macro was not getting activated when the F1 key was pressed.
I changed the keyboard but the problem didn't go away. If I reassign the macro to the F4 key, it works fine.

I am not sure what is taking over the F1 key. How can I diagnose the issue and fix the problem?

Thanks

VBA Code:
Sub Assign_Keys()
Const keyJump = "{F1}"
Const KeyJBack = "{F2}"

Application.OnKey Key:="{F1}", procedure:="Jump"
Application.OnKey Key:="{F2}", procedure:="Jump_Back1"
 

Excel Facts

Whats the difference between CONCAT and CONCATENATE?
The newer CONCAT function can reference a range of cells. =CONCATENATE(A1,A2,A3,A4,A5) becomes =CONCAT(A1:A5)
What does happen when you press f1? Anything?
 
Upvote 0
What if you start Excel in Safe Mode (hold the Ctrl key while starting the application) then open the workbook in question?
 
Upvote 0
What if you start Excel in Safe Mode (hold the Ctrl key while starting the application) then open the workbook in question?
In that case, pressing the F1 key, launches the macro (the safe mode is not allowing the macro to execute fully, but at least it is launched).
 
Upvote 0
That suggests that one of the files launched when Excel starts (add-in, COM Add-in, personal macro workbook) is interfering with your key assignments.
 
Upvote 0

Forum statistics

Threads
1,215,324
Messages
6,124,249
Members
449,149
Latest member
mwdbActuary

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