Message 1 of 4
Assign Keyboard Shortcut to Macro using control definitions within same Macro.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hi,
Is this Possible to Assign Keyboard Shortcut to Macro using control definitions within same Macro Code.
And not by assign shortcut to macro using customize command.
for example please find code below,
Dim oCD As ControlDefinition
ThisApplication.CommandManager.ControlDefinitions.Item("INDEX")
oCD.DefaultShortcut = 0
When is try to run code, code fails at this line
ThisApplication.CommandManager.ControlDefinitions.Item("INDEX")
as I am not familiar with Macros or ilogic, I do not know what exactly to be written in this section ("INDEX").
Please help me out to learn this.
Thank you.