I want to get a menu object(Robbin) from excel that it was developed with VSTO by Ribbon(UI or XML).
I can see the menu(Robbin) on the excel menu, but I can't get it as below:
Excel.Application excel = new Excel.Application("d:\\test.xlsx");
foreach (CommandBar bar in excel.CommandBas)
Excel version: 2016
using Excel = Microsoft.Office.Interop.Excel;
using Office = Microsoft.Office.Tools;