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 Execute
You can get the ID from the options dialog shown in the question. Hover above any item and find the ID in the tooltip: