ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Get List of Keyboard Shortcut Bindings (https://www.excelbanter.com/excel-programming/286449-get-list-keyboard-shortcut-bindings.html)

R Avery

Get List of Keyboard Shortcut Bindings
 
Is it possible to write code that goes through each macro in the Macro
Dialog box and gets the assigned shortcut key (if any)?

I know that you can create shortcut key bindings with
application.macrooptions, but how do you get a list of procedure names, and
how do you then use that to get a list of all the shortcut keys that have
already been assigned to the macros?

Any help would be most appreciated.


-Robert



Dave Peterson[_3_]

Get List of Keyboard Shortcut Bindings
 

Tim Childs posted a routine that seemed to work for him in xl2002 (but he said
that it didn't in xl2k):

http://groups.google.com/groups?&thr...%40tkmsftngp07

It relies heavily on Sendkeys so I'm not sure if I'd use it for anything
important.



R Avery wrote:

Is it possible to write code that goes through each macro in the Macro
Dialog box and gets the assigned shortcut key (if any)?

I know that you can create shortcut key bindings with
application.macrooptions, but how do you get a list of procedure names, and
how do you then use that to get a list of all the shortcut keys that have
already been assigned to the macros?

Any help would be most appreciated.

-Robert


--

Dave Peterson



All times are GMT +1. The time now is 10:09 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com