ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   Changing shortcut keys on macros (https://www.excelbanter.com/excel-worksheet-functions/17420-changing-shortcut-keys-macros.html)

WayneB

Changing shortcut keys on macros
 
Hi: I have a bunch of macros that have old ctl+ shortcut keys that need to
be changed and/or deleted. But I can't find a clue in the VBA code. any
ideas? wayne



IC

I don't know about a VBA method, but you can change/delete the shortcut key
in a macro by going to Tools|Macro|Macros|Options

Ian

"WayneB" wrote in message
...
Hi: I have a bunch of macros that have old ctl+ shortcut keys that need to
be changed and/or deleted. But I can't find a clue in the VBA code. any
ideas? wayne




Dave Peterson

Take a look at application.macrooptoins in VBA's help:

Application.MacroOptions Macro:="myMacro", _
HasShortcutKey:=True, ShortcutKey:="U"



WayneB wrote:

Hi: I have a bunch of macros that have old ctl+ shortcut keys that need to
be changed and/or deleted. But I can't find a clue in the VBA code. any
ideas? wayne


--

Dave Peterson


All times are GMT +1. The time now is 05:30 AM.

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