how to get all short cut keys assigned the procedures?

Colo

MrExcel MVP,
Joined
Mar 20, 2002
Messages
1,456
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

How to show all formulas in Excel?
Press Ctrl+` to show all formulas. Press it again to toggle back to numbers. The grave accent is often under the tilde on US keyboards.

Colo

MrExcel MVP,
Joined
Mar 20, 2002
Messages
1,456
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?

:)
 

Colo

MrExcel MVP,
Joined
Mar 20, 2002
Messages
1,456

ADVERTISEMENT

As just an information...

Now Japanese thread was closed.
There were no new method...
 

Andrew Poulsom

MrExcel MVP
Joined
Jul 21, 2002
Messages
73,092
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.
 

Colo

MrExcel MVP,
Joined
Mar 20, 2002
Messages
1,456
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.
 

Forum statistics

Threads
1,143,640
Messages
5,719,987
Members
422,257
Latest member
Calion

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
Top