none
How to customize the Review tab in Word 2010? RRS feed

  • Question

  • I have a really simple AddIn "SendALink" which just adds one button (and an unlabeled group) to the Review tab:

    Works fine with Excel and PowerPoint 2010 or 2013, using this XML:

    <!-- 7D7A77D3_DF5F_42C7_8969_4EF2EB5227DE -->
    <customUI 
        xmlns="http://schemas.microsoft.com/office/2009/07/customui"  
        onLoad="Ribbon_OnLoad_7D7A77D3_DF5F_42C7_8969_4EF2EB5227DE">
      <ribbon startFromScratch="false">
        <tabs>
          <tab idMso="TabReview">
            <group id="grpTools" autoScale="true" centerVertically="false">
              <button id="btnSendAsLink" size="large" imageMso="SendAsLink" 
                label="Einen Link senden"
    		onAction="Button_OnAction_7D7A77D3_DF5F_42C7_8969_4EF2EB5227DE"/>
            </group>
          </tab>
        </tabs>
      </ribbon>
    </customUI>
    But when I use the same code within a Word AddIn the button doesn't appear.


    The XML code seems okay and works, the onLoad routine is executed, I can see my Debug.Print line in the immediate window.

    Here is a download link to a ZIP file which contain all AddIn files:
    https://dl.dropboxusercontent.com/u/35239054/SendALink.zip

    What I'm doing wrong?

    Andreas.

    Saturday, June 20, 2015 6:22 AM

Answers

  • Hi Andreas

    When I look at the ControlIds list for Word it appears that the correct idMso is: TabReviewWord

    You cannot assume that the tab idMso in one application will be the same as the idMso in another application, even if the tabs use the same label...


    Cindy Meister, VSTO/Word MVP, my blog

    Saturday, June 20, 2015 5:19 PM
    Moderator

All replies

  • Hi Andreas

    When I look at the ControlIds list for Word it appears that the correct idMso is: TabReviewWord

    You cannot assume that the tab idMso in one application will be the same as the idMso in another application, even if the tabs use the same label...


    Cindy Meister, VSTO/Word MVP, my blog

    Saturday, June 20, 2015 5:19 PM
    Moderator
  • When I look at the ControlIds list for Word it appears that the correct idMso is: TabReviewWord

    Thanks, that was the issue. Where can I find the ControlIds lists for Office?

    Andreas.

    Sunday, June 21, 2015 3:53 AM
  • Hi Andreas,

    Cindy has posted a couple of links under the announcements button on top of the forum. One of the links is referring to what you are looking for. See button Announcements that says 3.

    Maurice


    When you see answers and helpful posts, please click Vote As Helpful, Propose As Answer, and/or Mark As Answer. Thank You

    Sunday, June 21, 2015 1:31 PM
  • Hi Maurice,

    I found it, thanks. Today there are only 2 announcements, so I'll post the link here directly for followers:

    Microsoft Office Document: [MS-CUSTOMUI2] Supporting Documentation
    https://www.microsoft.com/en-us/download/details.aspx?id=727

    Andreas.

    Monday, June 22, 2015 7:35 AM