3

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

Community
  • 1
  • 1
Robin Rodricks
  • 110,798
  • 141
  • 398
  • 607

2 Answers2

3

There are these:

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

JasonPlutext
  • 15,352
  • 4
  • 44
  • 84
2

You can get the ID from the options dialog shown in the question. Hover above any item and find the ID in the tooltip:

MSOID

Paul B.
  • 2,394
  • 27
  • 47