how to get all short cut keys assigned the procedures?

Colo

MrExcel MVP,
Joined
Mar 20, 2002
Messages
1,659
Office Version
  1. 2016
  2. 2003 or older
Platform
  1. Windows
Hi all :biggrin:

This is the question which I was asked at Japanese Q&A site.

I would like to know how to get all short cut keys assigned the procedures, via vba.
How do you think? It can be done?
 

Excel Facts

Add Bullets to Range
Select range. Press Ctrl+1. On Number tab, choose Custom. Type Alt+7 then space then @ sign (using 7 on numeric keypad)
On 2002-10-18 06:24, Ivan F Moala wrote:
Hi Colo
Lookup [MacroOptions Method] in the VBA help

:)

Thanks Ivan,
Yes I know MacroOptions method, but I think MacroOptions can only assigne short cut keys.
(For all I know)

But how can I know? eg. Sub Macro1() is assigned Ctrl + e something like that?

:)
 
Upvote 0
As just an information...

Now Japanese thread was closed.
There were no new method...
 
Upvote 0
Colo,

This intrigued me so I played around for a while using the VBIDE. But I got stuck because the object model was inadequate.

I wonder how Excel gets the procedure names in the MacroOptions Dialog. In VBAProject they are members of class <globals> or the module. But I could not find a collection and they are not Names under the Application object.

So it seems SendKeys is indeed the only way.
 
Upvote 0
Hi Andrew, Thank you for your reply. :)

In VBAProject they are members of class or the module.
But I could not find a collection and they are not Names under the Application object.

Yup, I've tried same as you too by using Object browser and Local window.
But there was no corrections.You might be right.
 
Upvote 0

Forum statistics

Threads
1,214,875
Messages
6,122,047
Members
449,064
Latest member
scottdog129

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