I don't have a ready answer for you and I have not seen very much
in the way of discussion in the newsgroups on this. As I think you
have discovered it can be troublesome to accomplish.
If you have to use a custom image, you might look at the
ImageList control to store/retrieve multiple images.
There are several thousand FaceID images included with Excel
and I have always been able to find one that is suitable...
Dim cmdItem as CommandBarButton
Set cmdItem = xxx.Controls.Add(Type:msoControlButton)
cmdItem.FaceId:= 123
If you need/want a quick, easy way to survey all of the FaceID's in
Excel, I have an add-in "Display Face IDs" that does the job.
Glad to send it along.
Remove xxx from my email address and include your name and
location with your request... (e-mail address removed)
--
Jim Cone
San Francisco, USA
http://www.realezsites.com/bus/primitivesoftware
"Lazzaroni" <
(e-mail address removed)>
wrote in message
Can anyone give me some pointers on how to embed images in an Excel add-in so
that I can use them as ControlButton images?
I currently use bitmap images saved to the same folder as the add-in, but I
want to make the add-in more portable by embedding the images in the add-in
itself.
Thanks.