IdMso & Image

L

lruizram

Hi

I'm trying this code in XML for my RibbonX EXcel customization:
<button idMso="PasteSpecialDialog" image="MyIcon"/>

But when i open the excel file that contains the xml code it doesn't load
the new image for PasteSpecialDialog Button?
- Image is in PNG format 16x16 pixels
- I load it with Custom UI Editor
- The code doesn't have any mistakes

Help me please
 
A

Andy Pope

Hi,

Looks like you can only set the imageMso property of a built in button.

You can get most of what you want by using a normal custom button with an on
action call back.

Public Sub Button2_onAction(control As IRibbonControl)
'
' Code for onAction callback. Ribbon control button
'
on error resume next
Application.CommandBars.ExecuteMso "PasteSpecialDialog"
exit sub
End Sub

Cheers
Andy
 

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