Hide or disable or intercept the Share button

Add-in Express™ Support Service
That's what is more important than anything else

Hide or disable or intercept the Share button
 
Tim Farrelly




Posts: 12
Joined: 2020-08-05
Hi,

Is it possible to hide, if not disable, if not intercept, the Share button on the ribbon?

Word is the application I am interested in.

This is the button that appears to the right of the ribbon tab names, together with a Comments button. These are obviously a relatively new component of the ribbon which I know little about, nor could find much googling.

Thanks
Tim
Posted 21 Jul, 2021 01:47:04 Top
Andrei Smolin


Add-in Express team


Posts: 18821
Joined: 2006-05-11
Hello Tim,

That button doesn't have an IdMso and you can't intercept it using the Ribbon API. I suppose you are required to use UI Automation.


Andrei Smolin
Add-in Express Team Leader
Posted 21 Jul, 2021 03:45:47 Top
Tim Farrelly




Posts: 12
Joined: 2020-08-05
Thanks for the quick response Andrei.

That's very disappointing of Microsoft to be creating loopholes like this. It compromises solutions for highly regulated document flow.
Posted 22 Jul, 2021 02:47:32 Top