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

Which came first: VisiCalc or Lotus 1-2-3?
Dan Bricklin and Bob Frankston debuted VisiCalc in 1979 as a Visible Calculator. Lotus 1-2-3 debuted in the early 1980's, from Mitch Kapor.

Colo

MrExcel MVP,
Joined
Mar 20, 2002
Messages
1,659
Office Version
  1. 2016
  2. 2003 or older
Platform
  1. Windows
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,659
Office Version
  1. 2016
  2. 2003 or older
Platform
  1. Windows
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,659
Office Version
  1. 2016
  2. 2003 or older
Platform
  1. Windows
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,181,095
Messages
5,928,045
Members
436,586
Latest member
latintxn

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