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>
[
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);
}
}
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
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With