开发者

Excel VSTO: keeping a custom ribbon displayed when switching workbooks

I have a Vsto Excel workbook (created in Visual Studio) which also contains a custom ribbon. If I load this workbook in Excel (2007), the ribbon is only displayed as long as my workbook has focus. It disappears if I switch to a different workbook. I understand this is by design, but is there any way of changing this behavior so that I can use the ribbon's buttons when any workbook is selecte开发者_运维知识库d?


In order to have an Excel-wide ribbon, you need to create an "Excel 2007 Add-in" in VS instead of an "Excel 2007 Template" or "Excel 2007 Workbook".

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜