Search notes:

CommandBars.executeMso

The following example opens File -> Options -> Trust Center (-> Trust Center Settings) -> Macro Settings.
application.commandBars.executeMso "MacroSecurity"

List of IDs

Microsoft provides a list of control identifiers for
This list is also hosted on github.
Note: the IDs are case sensitive.
Some interesting IDS include:
HideRibbon Toggle between hidden and shown Ribbon.
MinimizeRibbon Hide Ribbon (but leave menu visible)
VisualBasic Show Visual Basic Editor
ViewCode Show the code-module of the active worksheet.
MacroRecord Open dialog to record a VBA macro (Simulate Developer -> Code -> Record Macro)
MacroRelativeReferences
DesignMode
AddInManager, ComAddInsDialog Add-Ins
DataFormExcel Open the auto data input form for a table. Compare with activeSheet.showDataForm

Index

Fatal error: Uncaught PDOException: SQLSTATE[HY000]: General error: 8 attempt to write a readonly database in /home/httpd/vhosts/renenyffenegger.ch/php/web-request-database.php:78 Stack trace: #0 /home/httpd/vhosts/renenyffenegger.ch/php/web-request-database.php(78): PDOStatement->execute(Array) #1 /home/httpd/vhosts/renenyffenegger.ch/php/web-request-database.php(30): insert_webrequest_('/notes/Microsof...', 1737228410, '18.222.91.173', 'Mozilla/5.0 App...', NULL) #2 /home/httpd/vhosts/renenyffenegger.ch/httpsdocs/notes/Microsoft/Office/Object-Model/CommandBars/executeMso/index(62): insert_webrequest() #3 {main} thrown in /home/httpd/vhosts/renenyffenegger.ch/php/web-request-database.php on line 78