Calling CustomUI Embedded image using VBA

rawat26

New Member
Joined
Feb 4, 2015
Messages
1
Hi There,

I am creating a custom ribbon. I have added PNG images in my CustomUI editor. In my, Excel code I am changing Ribbon images using getImage(). I am able to change it with Office icons but not sure how to call my Embedded images.

Please help.
 

Excel Facts

Lock one reference in a formula
Need 1 part of a formula to always point to the same range? use $ signs: $V$2:$Z$99 will always point to V2:Z99, even after copying
As far as I know, you can only achieve this by opening the zip container every xlsm file is and extracting the file from there:
Excel 2007 fileformat: Editing elements in an OpenXML file using VBA
It is a lot easier to just have the icon files in the same folder as the workbook and read them from disk.
Alternatively, if there aren't too many you could put all incarnations of each button in the RibbonX and use the getVisible callback to display the right one.
 
Upvote 0

Forum statistics

Threads
1,223,908
Messages
6,175,306
Members
452,633
Latest member
DougMo

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top