Change onAction of Microsoft button in ribbon

S

Stumple

I am trying to change the onAction of a microsoft button inside the TabHome
GroupClipboard ribbon for Cut, Copy, and Paste. Does anyone know where a
reference is for the XML Microsoft has for their ribbon so that I can
override it?

This is what I have and it is not calling my onAction event. I have this
inside a larger file which contains my ribbon I have defined.

<tab idMso="TabHome">
<group idMso="GroupClipboard">
<button idMso="Cut" enabled="false" label="MyCut"
onAction="DoMyCut"
/>
<button idMso="Copy"/>
<button idMso="Paste"/>
</group>
</tab>
 
D

Doug Robbins - Word MVP on news.microsoft.com

I do not think that you can change the OnAction event of such a button.

You can however intercept any Word command by creating a macro with the same
name as that command.

For example

Sub EditCut()
MsgBox "Cutting is not allowed"
End Sub

--
Hope this helps.

Please reply to the newsgroup unless you wish to avail yourself of my
services on a paid consulting basis.

Doug Robbins - Word MVP, originally posted via msnews.microsoft.com
 
S

Stumple

I figured out a way to do it. I just hid theirs and made my own that looks
like theirs.
 

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