How to disable/enable the built-in controls dynamically when one shape in excel VSTO c#?

Po Po 6 Reputation points
2022-12-28T08:11:54.917+00:00

Hi

I am working in excel VSTO add-in.

In excel, having built-in tabs, groups, and controls in the ribbon. I need to disable the built-in controls in the excel.

For example, under Home tab and under Editing group have Replace control. I need to disable that Replace control dynamically if at least one shape exists because it can replace only the appearance of the shape and cannot replace the shape data.

Alternatively. Is there a solution for replace the shape data by Replace Control?

Otherwise, Is there a solution for not replace the appearance of the shape?

Before Replace

274475-microsoftteams-image-1.png

After Replace

274466-microsoftteams-image-2.png

Microsoft 365 and Office | Development | Other
0 comments No comments
{count} votes

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.