I am developing a Excel shared Add-in which has the menu called Custom
which is created using Excel Macros. Now i want to create a submenu under the Custom
menu using Csharp Shared Add -in. Iam using the below code for doing this but no help
oStandardBar = oCommandBars["Custom"];
oCmdBarCtrl = oStandardBar.Controls.Add(MsoControlType.msoControlPopup, Type.Missing, Type.Missing, Type.Missing, true);
oCmdBarCtrl.Visible = false;
oCmdBarCtrl.Caption = "Sub Menu1";
But it does not create a submenu, where as if i give "Help" in place of Custom i get the menu created. any work around for this?
Here's a quick sample to help you on your way: