Executing Ribbon Command from Code Outlook 2010

J

John Webster

As far as I can tell, ExecuteMso is now only available on the
Office.CommandBars object, which is deprecated in Outlook 2010.



I have an application that (in versions prior to 2010) executes the
"MoveNext" command for Outlook Inspectors.



Does anyone have any information about the ability (or lack thereof) to
execute Outlook commands, especially those which don't appear on the Ribbon ?



Thanks.
 
K

Ken Slovak - [MVP - Outlook]

I haven't heard of anything that would provide that ability, but I haven't
tested that sort of thing so far.
 
J

John Webster

Ken, thanks for your reply.

As it turns out, the Explorer & Inspector CommandBars are just hidden in
2010, as I learned this morning.

You CAN set them in code and use the ExecuteMso method of the CommandBars.

I don't know if that's the way it's going to be going forward....

Cheers.
 
K

Ken Slovak - [MVP - Outlook]

I had some hints that they could still be used, but it's all unsupported so
there's no guarantee that will work even when SP1 comes out much less future
versions. At some point they won't just be hidden objects but non-existent
objects.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top