Excel VSTO ->Hide/Unhide Ribbon Button based on another Ribbon Button click

Posted by Jignesh on Stack Overflow See other posts from Stack Overflow or by Jignesh
Published on 2010-04-07T08:57:30Z Indexed on 2010/04/07 9:03 UTC
Read the original article Hit count: 504

Filed under:
|
|

We are creating Excel 2007 AddIn using VSTO. Now we have a scenario where in there are 2 buttons. Button 'A' and Button 'B'. Button 'B'needs to be hidden based on the click on the button 'A'.

But since the ribbon bar is not getting refreshed dynamically we are unable to see the change on the Ribbon Bar.

I heard from some blods we need to use callback methods for the same.

Could you please explain and put some code snippet on how to do that ?

Will highly appreciate if anyone can help asap ...

© Stack Overflow or respective owner

Related posts about vsto

Related posts about excel-2007