Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Are the command codes for ExecuteMso documented?

Tags:

c#

ms-office

MS Office apps have an incredible API that lets one execute any command that is accessible from the UI, but inaccessible from the Object Model. Specifically, you can use ExecuteMso() to execute any command button, toggle button or split button. The docs say:

expression.GetEnabledMso(idMso)

idMso - Identifier for the control (String)

Are the string command codes documented anywhere? Office apps have thousands of unique commands that can be viewed in the Options dialog, and it would be nice to have a reference of the string codes for all of these.

office commands

like image 918
Robin Rodricks Avatar asked Sep 05 '26 22:09

Robin Rodricks


1 Answers

There are these:

  • Office 2007: Lists of Control IDs

  • Office 2010: Office Fluent User Interface Control Identifiers

  • Office 2013: Office Fluent User Interface Control Identifiers

And see further http://www.rondebruin.nl/win/s2/win003.htm

like image 164
JasonPlutext Avatar answered Sep 07 '26 12:09

JasonPlutext



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!