0
votes

i am working on an Excel AddIn Development using Visual Studio Tools for Office (VSTO 4.0). there is an option in Excel Lock Drawing mode for specific shape which enable a user to draw a shape multiple times.

my requirement is to enable "Lock Drawing mode" (for ElbowConnector) using C#/VB.Net using VSTO 4.0. i tried to find a solution to this even in VBA but did not get any luck.

Thank you,

Regards,

1

1 Answers

0
votes

You can try to execute the built-in button programmatically. The ExecuteMso method of the CommandBars class allows to run the built-in controls programmatically. See Office 2013 Help Files: Office Fluent User Interface Control Identifiers.