Excel VSTO ->Hide/Unhide Ribbon Button based on another Ribbon Button click
- by Jignesh
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 ...