none
Adding controls to custom tab RRS feed

  • Question

  • I have created a custom tab from the Customize Ribbon > New Tab tool.  I have added macros, etc.  Now I want to add a Gallery control to display autotext entries stored in Custom Gallery1.  I have opened the file in the CustomUI Editor.  How do I find the "tab id" of the custom tab so I can add the Gallery to that custom tab?
    Friday, February 3, 2012 2:19 AM

Answers

  • For Word 2010, there's no need to use the Custom UI Editor for this task. Everything you need is built into the Customize Ribbon dialog in the Word program.

    First, use the Building Block Organizer to make sure all your autotext entries are assigned to the "Custom 1" gallery (and assigned categories if you want them grouped within the gallery).

    In the Customize Ribbon dialog, select the new group in new tab you already created. On the left side, set the commands dropdown to All Commands. In the list of commands, select "Custom Gallery1" and click the Add button. If desired, click the Rename button and choose an icon and display name for the button. Then click OK.

    You should now have a button that displays the gallery.

    Note that there is also a "Custom AutoText" gallery, separate from the "Custom Gallery1". There's no difference in behavior; items in Gallery1 will behave like autotext, as you can type an item's name and press F3 to insert it.

    You might also be interested in http://gregmaxey.mvps.org/word_tip_pages/build_deploy_custom_bb_galleries.html.


    Jay Freedman
    MS Word MVP  FAQ: http://word.mvps.org
    • Marked as answer by orlandp Friday, February 3, 2012 6:01 PM
    Friday, February 3, 2012 4:38 PM

All replies

  • Hi Orland

    I'm not sure I'm following, here. Where is the Customize Ribbon > New Tab tool (in what program)?

    Are you creating this custom tab in a document or in an add-in?

    Which version of Word are we discussing?


    Cindy Meister, VSTO/Word MVP
    Friday, February 3, 2012 3:25 PM
    Moderator
  • I am using the Customize Ribbon features of the built-in UI in Word 2010.
    Friday, February 3, 2012 3:43 PM
  • Hi orland

    "You can't get there from here".

    The customize commands in the Word UI write to a separate file that Word loads and that cannot be combined with a Ribbon XML in a Word document.

    Could you please provide more information about what it is you want to accomplish? I suspect that what you need to do is create a Word template, open that in the Custom UI Editor, add a Custom UI for Office 2010 and then define the entire Ribbon XML in that.

    You'd then save the template to Word's Startup folder or load it via Develper/Templates as a template add-in so that the Ribbon would be available to you for all documents you work on.

    There's a 3-part set of articles that can help you with this. The first part:
    http://msdn.microsoft.com/en-us/library/aa338202(office.12).aspx


    Cindy Meister, VSTO/Word MVP
    • Marked as answer by orlandp Friday, February 3, 2012 4:09 PM
    • Unmarked as answer by orlandp Friday, February 3, 2012 6:01 PM
    Friday, February 3, 2012 4:05 PM
    Moderator
  • For Word 2010, there's no need to use the Custom UI Editor for this task. Everything you need is built into the Customize Ribbon dialog in the Word program.

    First, use the Building Block Organizer to make sure all your autotext entries are assigned to the "Custom 1" gallery (and assigned categories if you want them grouped within the gallery).

    In the Customize Ribbon dialog, select the new group in new tab you already created. On the left side, set the commands dropdown to All Commands. In the list of commands, select "Custom Gallery1" and click the Add button. If desired, click the Rename button and choose an icon and display name for the button. Then click OK.

    You should now have a button that displays the gallery.

    Note that there is also a "Custom AutoText" gallery, separate from the "Custom Gallery1". There's no difference in behavior; items in Gallery1 will behave like autotext, as you can type an item's name and press F3 to insert it.

    You might also be interested in http://gregmaxey.mvps.org/word_tip_pages/build_deploy_custom_bb_galleries.html.


    Jay Freedman
    MS Word MVP  FAQ: http://word.mvps.org
    • Marked as answer by orlandp Friday, February 3, 2012 6:01 PM
    Friday, February 3, 2012 4:38 PM