Intercept Ribbon controls in Mac Word 2011

A

anubatra.16

Is it possible to intercept the ribbon controls in Mac Word 2011.?

I am able to intercept the ribbon controls in word 2007 and Word 2010 using Word Commands.
But how can i get the command names (idMso) in Word 2011.

Please help.
 
M

Michael Vilain

Is it possible to intercept the ribbon controls in Mac Word 2011.?

I am able to intercept the ribbon controls in word 2007 and Word 2010 using
Word Commands.
But how can i get the command names (idMso) in Word 2011.

Please help.

If you can code and have access to the API documents for Word, I'm sure
you can come up with something. Many Word tool developers built stuff
with their own toolbar ribbons (e.g. Google, MathType, etc.). However,
having an architecture that allowed one vendor to 'takeover' or walk on
another's product would be a really Bad Idea(tm), IMO.

If you can do this, I wouldn't be surprised. Microsoft product managers
make strange decisions sometimes. But I tend to doubt it's possible.

Instead of "how", why not describe what you're trying to do. Maybe
there's another way.
 
A

anubatra.16

To be more specific i want to intercept the controls present on the ribbon.

For example, I want when i click BOLD control present on the ribbon, it should call my Macro and not the inbuiilt Bold command.
I am able to achieve it in Word 2007 and Word 2010 by creating a macro which has the same name as the Command name of the control but this doesn't work in Mac Word 2011.
Although the command name for the control is same in both toolbar and ribbon in word 2011, and the control in Toolbar is getting intercepted but not in ribbon.

Is there any way out to achieve it ?

If it is not possible to intercept a control in ribbon, is there any way out to disable a particular control in ribbon conditionally ?
 
A

anubatra.16

To be more specific i want to intercept the controls present on the ribbon.

For example, I want when i click BOLD control present on the ribbon, it should call my Macro and not the inbuiilt Bold command.
I am able to achieve it in Word 2007 and Word 2010 by creating a macro which has the same name as the Command name of the control but this doesn't work in Mac Word 2011.
Although the command name for the control is same in both toolbar and ribbon in word 2011, and the control in Toolbar is getting intercepted but not in ribbon.

Is there any way out to achieve it ?

If it is not possible to intercept a control in ribbon, is there any way out to disable a particular control in ribbon conditionally ?
 
M

Michael Vilain

To be more specific i want to intercept the controls present on the ribbon.

For example, I want when i click BOLD control present on the ribbon, it
should call my Macro and not the inbuiilt Bold command.
I am able to achieve it in Word 2007 and Word 2010 by creating a macro which
has the same name as the Command name of the control but this doesn't work
in Mac Word 2011.
Although the command name for the control is same in both toolbar and ribbon
in word 2011, and the control in Toolbar is getting intercepted but not in
ribbon.

Is there any way out to achieve it ?

If it is not possible to intercept a control in ribbon, is there any way out
to disable a particular control in ribbon conditionally ?

On the Mac, I think you're out of luck here. You'd have to intercept
the keyboard input event _before_ it's sent to Word and disable Word's
button on the Ribbon. As near as I can see (e.g. Mathtype, which
creates it's _own_ ribbon rather then do anything with Word's), I think
you'll have to build your own ribbon and have it do AppleScripts or some
other scripting language. You could reassign keyboard shortcuts to
whatever you want in older versions of MacOS Word (haven't tried that
with Word 2011), but the various ribbons are hands off.
 

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