Does Excel VBA object model allows for access to keyboard shortcut to VBA IDE menu items? -
does excel vba object model allows access keyboard shortcuts vba ide menu items ? (i create additional item in menu , connect choosen shortcut)
for example code below returns "c&lear" means can access "clear" item typing "l" when "edit" group in vbe ide active, can access "clear" typing "delete" button alone :
debug.print application.vbe.commandbars(1).controls(2).controls(6).caption
is there way find pragrammaticaly direct shortcut item in ide menu ("delete" in case above) ? add item vba ide menu new custom shortcut ?
debug.print application.vbe.commandbars(1).controls(3).controls(6).caption
returns "&immediate window" access immediate window direct shortcut "ctrl+g"
is there way find pragrammaticaly direct shortcut item in ide menu ("delete" in case above)
yes, there is. try this
debug.print application.vbe.commandbars(1).controls(2).controls(6).shortcuttext
this give del
followup comments:
Comments
Post a Comment