Respondido Arrange Buttons in Add-Ins Ribbon

  • segunda-feira, 30 de abril de 2012 19:19
     
     

    Hi all,

    At my job I've been tasked with bringing in all the old Word 2003 macros into Word 2010. I've been able to successfully bring the macros in by placing the old .dot files into the C:\Users\<user name>\AppData\Microsoft\Word\STARTUP\ directory and then opening up Word which converts the macros, and then closed Word at which point I was asked by Word to Save or Overwrite the modified styles (I clicked Overwrite for each macro). From then on, anytime I open up Word 2010, the macros are there under the Add-Ins tab. They work as they're supposed to so my 90% of my task is complete. The remaining portion of the task is to get the macros (showing up as buttons) to appear in the same order as they did in the 2003 version of Word.

    I cannot figure out how to rearrange the macro buttons under the Add-Ins tab. I did not write these macros and frankly I don't entirely understand what they're being used for, but I don't really have to care because right now I'm only interested in the order they're being displayed. 

    Can anybody help me with this dilemma?

    Brian

Todas as Respostas

  • terça-feira, 1 de maio de 2012 13:44
    Moderador
     
     Respondido

    Hi Brian,

    Please navigate to the folder

    %userprofile%\AppData\Local\Microsoft\Office

    find a file named Word14.customUI, open it with Notepad, should find something like

    <group id="CustomGroup1" label="Horizontal Boxes"
       insertBeforeMso="GroupClipboard">
      <box id="box1" boxStyle="horizontal">
        <button id="buttonA1" label="Button1"/>
        <button id="buttonA2" label="Button2"/>
      </box>
      <box id="box2" boxStyle="horizontal">
        <button id="buttonAA" label="ButtonA"/>
        <button id="buttonAB" label="ButtonB"/>
        <button id="buttonAC" label="ButtonC"/>
      </box>
    </group>
    <group id="CustomGroup2" label="Vertical Boxes"
       insertBeforeMso="GroupClipboard">
      <box id="box3" boxStyle="vertical">
        <button id="buttonB1" label="Button1"/>
        <button id="buttonB2" label="Button2"/>
      </box>
      <separator id="separator2"/>
      <box id="box4" boxStyle="vertical">
        <button id="buttonBA" label="ButtonA"/>
        <button id="buttonBB" label="ButtonB"/>
        <button id="buttonBC" label="ButtonC"/>
      </box>
    </group>
    <group id="CustomGroup3" label="No Boxes"
       insertBeforeMso="GroupClipboard">
      <button id="buttonC1" label="Button1"/>
      <button id="buttonC2" label="Button2"/>
      <button id="buttonCA" label="ButtonA"/>
      <button id="buttonCB" label="ButtonB"/>
      <button id="buttonCC" label="ButtonC"/>
    </group>

    result in

    Different box styles

    modify the sort order to rearrange them.

    Max Meng

    TechNet Community Support