Shortcut Key: Possible to use the Windows Key instead of the CTRL

mtheriault2000

Well-known Member
Joined
Oct 23, 2008
Messages
826
Hello

When recording a macro, Excel give the possibility to access the macro using a Shortkey using CTRL + a key. Is it possible to use also the Windows key ( the one just next the left CTRL key on the keyboard

Martin
 

Excel Facts

Format cells as time
Select range and press Ctrl+Shift+2 to format cells as time. (Shift 2 is the @ sign).
Hi Martin. As far as I know, it's impossible. WINDOWS key works as same as when we press Ctrl + Esc.
Shortcut Key can be set by VBA using Application.OnKey, so the code would be as follows, but it doesn't work.
Code:
Application.OnKey "^{ESC}", "MacroName"
 
Upvote 0

Forum statistics

Threads
1,215,076
Messages
6,122,984
Members
449,092
Latest member
Mr Hughes

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