none
How to add custom Group in PowerPoint ribbon in TabChartToolsFormat tab. RRS feed

  • Question

  • I am trying to add my custom buttons and Controls inside Format tab which is dynamically added to the main Tab list when user inserts any chart and is selected.

    I have followed this link but it's not getting added in Format Tab

    https://msdn.microsoft.com/en-us/library/bb608593.aspx.

    I guess when the code to load the Ribbon is run the Chart Tools| Format Tab is not there.

    Please let me know how could this be achieved.

    Thanks


    Point5Nyble

    Wednesday, March 2, 2016 7:21 AM

Answers

  • Hi Point5Nyble,

    >> I am trying to add my custom buttons and Controls inside Format tab which is dynamically added to the main Tab list when user inserts any chart and is selected.

    TabChartToolsFormat Tab would show when you select a chart, so it is different from other built in tab like Home Tab. It is under the contextualTabs.

    For your requirement, I suggest you add Ribbon(XML), and the XML like below:

    <?xml version="1.0" encoding="UTF-8"?>
    <customUI xmlns="http://schemas.microsoft.com/office/2009/07/customui" onLoad="Ribbon_Load">
      <ribbon>
        <contextualTabs >
          <tabSet idMso="TabSetChartTools" >
            <tab idMso="TabChartToolsDesign" visible="false">
            </tab>
            <tab idMso="TabChartToolsLayout" visible="false">
            </tab>
            <tab idMso="TabChartToolsFormat" visible="true">
              <group id="myGroup3" label="Test Group">
                <button id="myButton2" label="Click My Test Button"/>
              </group>
            </tab>
            <tab id="myTab2" label="Test Tab">
              <group id="myGroup4" label="Test Group">
                <button id="myButton4" label="Click My Test Button"/>
              </group>
            </tab>
          </tabSet>
        </contextualTabs>
      </ribbon>
    </customUI>

    For creating a custom tab by using Ribbon XML, you could refer the link below:
    # Walkthrough: Creating a Custom Tab by Using Ribbon XML
    https://msdn.microsoft.com/en-us/library/aa942955.aspx?f=255&MSPPError=-2147217396

    Best Regards,

    Edward


    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click HERE to participate the survey.


    Thursday, March 3, 2016 6:55 AM

All replies

  • Hi Point5Nyble,

    >> I am trying to add my custom buttons and Controls inside Format tab which is dynamically added to the main Tab list when user inserts any chart and is selected.

    TabChartToolsFormat Tab would show when you select a chart, so it is different from other built in tab like Home Tab. It is under the contextualTabs.

    For your requirement, I suggest you add Ribbon(XML), and the XML like below:

    <?xml version="1.0" encoding="UTF-8"?>
    <customUI xmlns="http://schemas.microsoft.com/office/2009/07/customui" onLoad="Ribbon_Load">
      <ribbon>
        <contextualTabs >
          <tabSet idMso="TabSetChartTools" >
            <tab idMso="TabChartToolsDesign" visible="false">
            </tab>
            <tab idMso="TabChartToolsLayout" visible="false">
            </tab>
            <tab idMso="TabChartToolsFormat" visible="true">
              <group id="myGroup3" label="Test Group">
                <button id="myButton2" label="Click My Test Button"/>
              </group>
            </tab>
            <tab id="myTab2" label="Test Tab">
              <group id="myGroup4" label="Test Group">
                <button id="myButton4" label="Click My Test Button"/>
              </group>
            </tab>
          </tabSet>
        </contextualTabs>
      </ribbon>
    </customUI>

    For creating a custom tab by using Ribbon XML, you could refer the link below:
    # Walkthrough: Creating a Custom Tab by Using Ribbon XML
    https://msdn.microsoft.com/en-us/library/aa942955.aspx?f=255&MSPPError=-2147217396

    Best Regards,

    Edward


    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click HERE to participate the survey.


    Thursday, March 3, 2016 6:55 AM
  • Will try this but is there no way to achieve this using Visual Designer?


    Point5Nyble

    Thursday, March 3, 2016 7:09 AM
  • Hi Point5Nyble,

    Please feel free to let me know your test result. Visual Designer and XML Ribbon are different, and there is no way to achieve this by using Visual Designer.

    Best Regards,

    Edward


    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click HERE to participate the survey.


    Tuesday, March 8, 2016 8:37 AM