5
votes

I'm currently developing an excel add in C#, but it show this empty "Custom toolbar" on the ribbon, what i did not create

I checked the xml of the ribbon, but it does not show anything like this:

    <code>
    <?xml version="1.0" encoding="UTF-8"?>
<customUI onLoad="Ribbon_Load" xmlns="http://schemas.microsoft.com/office/2006/01/customui">
    <ribbon>
        <tabs>
            <tab idMso="TabAddIns" label="Addin">
                <group id="devGroup" label="Developer" visible="false">
                    <comboBox id="cmbModules" screentip="Select Module" label="Modules" showImage="false" />
                    <button id="btnInstallModule" onAction="btnInstallModule_Click" label="Install" showImage="false" />
                    <button id="btnUninstall" onAction="btnUninstall_Click" label="Uninstall" showImage="false" />
                </group>
            </tab>
        </tabs>
    </ribbon>
</customUI>
</code>

[enter image description here

Anybody know anything about this issue?

private void ExcelRibbon_Load(object sender, RibbonUIEventArgs e) { cmbModules.Items.Clear();

        foreach (var module in PSAddinModules.ModuleHandler.ModuleList)
        {
            var dropDownItem = this.Factory.CreateRibbonDropDownItem();
            dropDownItem.Label = module.Value.Name;
            cmbModules.Items.Add(dropDownItem);
        }

    }

1
can you expand on the code? Are you using any libraries, if so what - Takarii
It is a bit big to expand the whole, but i dont use any library. - csegeny92

1 Answers

7
votes

I had the same issue, caused by the Team Foundation Add-in. Tools --> Options --> Add-Ins, Manage COM Add-ins and disabled it there did the trick for me