Excel VSTO & # 8594; Hide / show ribbon based on another ribbon button

We are creating Excel 2007 AddIn using VSTO. Now we have a script in which there are 2 buttons. Button "A" and button "B". The B'needs button should be hidden based on a click on the A button.

But since the ribbon bar is not updated dynamically, we cannot see the changes in the ribbon panel.

I heard from some blocks, we should use callback methods for the same.

Could you explain and put a piece of code on how to do this?

Would be very grateful if anyone could help as soon as possible ...

+3
source share
2 answers

...

1: "B" False 2: Click "A" true.

, ... .

0

:

1), "" , .Invalidate(); , / .

2) / Ribbon, . , Office ( ), , . : http://msdn.microsoft.com/en-us/office/aa973809.aspx

0

Source: https://habr.com/ru/post/1740124/


All Articles