添加链接
link管理
链接快照平台
  • 输入网页链接,自动生成快照
  • 标签化管理网页链接
){outline:none;box-shadow:none;}select::-ms-expand{;}:root,:host{--chakra-vh:100vh;}@supports (height: -webkit-fill-available){:root,:host{--chakra-vh:-webkit-fill-available;}}@supports (height: -moz-fill-available){:root,:host{--chakra-vh:-moz-fill-available;}}@supports (height: 100dvh){:root,:host{--chakra-vh:100dvh;}}
Link to home
Create Account Log in
Avatar of Jamie Garroch (MVP)
Jamie Garroch (MVP) 🇬🇧
How to determine which idMso ribbon control ids are supported on Office 365 Mac
On a PC, I can issued this command to tell PowerPoint to arrange all visible windows:
Application.CommandBars.ExecuteMso "WindowsArrangeAll"

Open in new window

If I try this on a Mac I get a run time error 5 (invalid procedure or argument).
Other MSO control IDs do in fact work on Mac such as this one:
Application.CommandBars.ExecuteMso "ShowNotes"

Open in new window

Furthermore, the CommandBars.FindControls method doesn't seem to work on Mac.
So I have a couple of questions:
1. How can I invoke the Arrange Windows function on Mac? (it's in the menu bar under Window / Arrange All, as opposed to the ribbon)
2. Why do some control IDs not work on Mac?
3. Is there documentation showing which controls are/are not supported in addition to this on GitHub? https://github.com/OfficeD ev/office- fluent-ui- command-id entifiers
ASKER CERTIFIED SOLUTION
Avatar of John Korchok
Link to home
membership
Create a free account to see this answer
Signing up is free and takes 30 seconds. No credit card required.
Avatar of Jamie Garroch (MVP)
Jamie Garroch (MVP) 🇬🇧
Thanks again John. Some responses:
Yep, the Mac OM is challenging to use to say the least, especially if you use UserForms as there's no designer on Mac. Dev on PC, try on Mac, broken, go back to PC, try again, repeat numerous times! Things like the guides OM simply don't exist. But I was extremely happy to learn from Microsoft that application events and LoadPicture (including PNG) are now supported. Dynamic ribbon galleries at last :-)
1. I tried briefly yesterday and made some progress. I maximised any that are visible and then changed size and position. Seems to work.
2. I think they're focussed on web first e.g. Office.js
3. That was what I was thinking I'd have to do! Not sure I have time in this lifetime though :-D
I need to update this relatively old article with the above points: http://youpresent.co.uk/de veloping-v ba-powerpo int-mac/
Avatar of Jamie Garroch (MVP)
Jamie Garroch (MVP) 🇬🇧
Thanks John. I always appreciate your insight and dedication to the presentation community with the generosity you afford it.
Avatar of Jamie Garroch (MVP)
Jamie Garroch (MVP) 🇬🇧
Ha. And in the interest of sharing, this doesn't work on Mac:
Window.View.ZoomToFit = msoTrue

Open in new window

But this does:
CommandBars.ExecuteMso "ZoomFitToWindow"

Open in new window