问题
If I create a new 'Excel 2013 and 2016 VSTO Add-in' Project from the File/New Project... menu, and then Project/Add New Item... -> Ribbon (Visual Designer), everything works fine: when I launch the App I have my Ribbon showing in Excel.
But if I first create a 'Blank Solution', and then add an Excel VSTO Project from the File/Add/New Project...: if I add a Ribbon item in the project it does not show in Excel.
That must mean I have to set a reference to the Ribbon somewhere in the Solution properties, but I could not find where. Any ideas?
回答1:
Open ribbon in Design view (where do you add bottons, labels, etc.), select ribbon and check in properties panel if RibbonType = Microsoft.Excel.Workbook
hope help you
来源:https://stackoverflow.com/questions/54676630/vsto-ribbon-not-showing-when-starting-from-blank-solution