Excel Ribbon tab selection Chang event

前端 未结 2 1019
梦谈多话
梦谈多话 2021-01-23 05:46

I am using VSTO Deveopment | Excel 2007 | C#. Is there any event to identify that the tab selection in excel ribbon has changed ?

相关标签:
2条回答
  • 2021-01-23 06:22

    No.

    0 讨论(0)
  • 2021-01-23 06:28

    In VSTO2010, the ability to programmatically switch the selected tab was added. Norm Estabrook blogged about it.

    this.RibbonUI.ActivateTabMso("TabAddIns");
    

    So while there isn't an event that can be latched onto, at least you can switch the selected tab. For instance, I'm going to use the sheet selection event; when users switch between different sheets of my workbook, I am going to change their selected tab. Each sheet will correspond to a different ribbon tab.

    0 讨论(0)
提交回复
热议问题