Ability to disable add-in commands on the context menu
I'm working in Excel but the same should apply for all products where you can define custom add-in commands. When you create a custom add-in command in the ribbon, you are able to toggle it from enabled to disabled and back again using Office.Ribbon.RequestUpdate(). You cannot do the same when you define a command for the context menu. I need to be able to toggle the availability or enabled state of my add-in command(s) in the context menu. The function we want to use a command for doesn't make sense to add as a button in the ribbon.
2 Comments
- AdrianWu
Microsoft
Hi!! We’re excited to share that this capability is now available on the web and in desktop versions starting with:
- Win32: 16.0.18526.20144
- MacOS: 16.94.209.0(16.94.25020927)
Please check the document here for more information: Enable and Disable Add-in Commands
Thank you very much for staying tuned for our feature release! Hope this feature could be helpful for your scenario. - gehatgCopper Contributor
Please add this, it is very basic feature I dont understand why context menu buttons can not be disabled? Is that so difficult to do?