Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,272
Default Shortcuttext

I am just setting up some shortcut keys for some commandbar button items.

I can get Ctrl-Shift-x to work quite simply by tagging this code onto a
commandbar button

.ShortcutText = "Ctrl+Shift+X"
Application.MacroOptions Macro:=.OnAction, _
HasShortcutKey:=True, _
ShortcutKey:="X"

What is the code for other key combinations, such as Alt-Shift and letter?

And on a related topic, why is it that if I change the macro option to a
named macro the compiler objects? I would like to direct my shortcut text to
invoke a different macro to the menu click (the reason being that on menu
click macro I am using the the ActionControl property, which won't be in
scope when I use a shortcutkey).

Bob


Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 08:22 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"