-1

I want to do something like the following in PowerPoint:

Application.CommandBars.ExecuteMso ("PasteSourceFormatting")

but, when I have a table selected, to run the "Layout" -> "Cell Margins" -> "Narrow"

What is the idMSO / ExecuteMso tag with the 'Narrow' option?

Similarly, with table selected, on the "Home" tab, "Font" -> "Size" and the number?

Calling an 'ExecuteMso' command would apply required changes to an entire table vs. forcing a developer to loop through each cell individually which creates a bottleneck.

Thanks

Ike
  • 9,580
  • 4
  • 13
  • 29
El_T
  • 5
  • 4
  • the controls within the TableCellCustomMarginsDialog (i.e. 'Narrow') – El_T Aug 21 '23 at 17:08
  • Have you seen `https://learn.microsoft.com/en-us/openspecs/office_standards/ms-customui/f2a8e3c0-14cb-4ad3-88cd-a8b5b1b9a8a0?WT.mc_id=M365-MVP-33461` ? MS documentation seems often lacks some technical details. – taller_ExcelHome Aug 21 '23 at 17:27
  • You can find the idMSO that are exposed to the OM by going to the ribbon customization dialog. Hover over the one you want and a tooltip appears; the part at the end of the tooltop in parentheses is the idMSO for the command. If what you're after doesn't appear on the list even when you choose to show All Commands, then it's not available to use. – Steve Rindsberg Aug 21 '23 at 20:12
  • @SteveRindsberg, yeah, thanks -> it appears there is not the granularity in that control, unfortunately – El_T Aug 24 '23 at 17:16

0 Answers0