Results 1 to 6 of 6
  1. #1
    2 Star Lounger
    Join Date
    Jan 2004
    Location
    Mount Prospect, Illinois
    Posts
    142
    Thanks
    0
    Thanked 0 Times in 0 Posts

    2007 Ribbon - Shortcut Keys on Menus? (2007)

    On old-fashioned menu items, whether Office or elsewhere, you could add a shortcut key.

    At the best, your menu-creation tool would let you put in a shortcut key string like 'Ctrl+Alt+1',
    At worst, you could always enter "&Do IttCtrl+Alt+1" and the tab char would tell Windows that you want to show Ctrl+Alt+1 in the shortcut slot

    In Office 2007, this doesn't seem to work. First off, it's XML, so a hard tab character is a no-no. So you use the entity string, . No dice: it shows up as an empty box character in the UI.

    Has anyone gotten this to work, or have other suggestions on how to force it into the menus I create in Office 2007?

    Thanks,
    Joel

  2. #2
    Silver Lounger
    Join Date
    Apr 2001
    Location
    New York, New York, USA
    Posts
    2,328
    Thanks
    0
    Thanked 1 Time in 1 Post

    Re: 2007 Ribbon - Shortcut Keys on Menus? (2007)

    You can customize Word 2007's shortcut keys:

    1. Open MS Word 2007
    2. Click the Office button in the upper left corner of the screen
    3. Click "Word Options" button
    4. Click "Customize" on the left pane (below separator bar)
    5. In the bottom of the window, click the "Customize..." button beside "Keyboard shortcuts:"
    6. In the Customize Keyboard dialog, locate the command for which you would like to edit the keyboard shortcut
    7. Choose a shortcut key (or key combination) of your choice and click "Assign" button.

  3. #3
    2 Star Lounger
    Join Date
    Jan 2004
    Location
    Mount Prospect, Illinois
    Posts
    142
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: 2007 Ribbon - Shortcut Keys on Menus? (2007)

    Yes, but you can't add keyboard shortcuts, so far as I can tell, to commands you have added to Office using the customUI.xml file, except for the hovering "keytip" letters. There's no equivalent to putting, as I said, Control+Alt+1 on a menu item that drops down from a button or split button on the ribbon, which I could easily do in Word 2003 and previous.

    The only thing I can do is create a macro for each equivalent command in my custom UI, and use the keyboard shortcut customize option to add shortcuts to those, and perhaps add the keyboard shortcut to the toolTip or superTip. By contrast, the code that the customUI.xml points to is not accessible to the keyboard shortcut command, because they have VBA code that takes parameters. But that still doesn't make the keyboard shortcut visible to the user.

  4. #4
    Administrator
    Join Date
    Mar 2001
    Location
    St Louis, Missouri, USA
    Posts
    23,568
    Thanks
    5
    Thanked 1,056 Times in 925 Posts
    Joe

  5. #5
    Administrator
    Join Date
    Mar 2001
    Location
    St Louis, Missouri, USA
    Posts
    23,568
    Thanks
    5
    Thanked 1,056 Times in 925 Posts

    Re: 2007 Ribbon - Shortcut Keys on Menus? (2007)

    You can get Visual Studio 2008 Express Editions for <img src=/S/free.gif border=0 alt=free width=30 height=15>.

    Joe
    Joe

  6. #6
    2 Star Lounger
    Join Date
    Jan 2004
    Location
    Mount Prospect, Illinois
    Posts
    142
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: 2007 Ribbon - Shortcut Keys on Menus? (2007)

    I haven't tried VSTO yet -- I don't have Visual Studio on my 2007 machine, so I've not been anxious to start mucking with VSTO. I'll also take a look at the RibbonCustomizer. It might do the job, it might not, it's not clear from the docs.

    Thanks.

    [edit]RibbonCustomizer won't do squat for that -- I'll have to try VSTO. Gut feeling is that it probably won't do what I need.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •