I created toolbar for my macros i need to put icons instead of text buttons.

When I copy/paste icons quality will be lost ,look is not sharp enough.(bmp).

I created icons in (png,ico) fromat with magenta(255,0,255) color with is
used by
windows as trasparent color.

Q: how can I add icons to the .dll?
Q:in which .dll
Q:Can I add it to my own dll and then insert reference in my .dot on
myown.dll.

Ps: some tutorial would be useful

thanks in advance

acherony

Re: Need to add .png or .ico icons to the .dll by Cindy

Cindy
Sun Jul 09 07:37:38 CDT 2006

Hi =?Utf-8?B?YWNoZXJvbnk=?=,

Office VBA has no facility for creating and using resource files like this. The
2002 and 2003 object models support the Picture and Mask properties of a
CommandBarButton object. These use IPictureDisp to load a graphics file to the
button face.

> I created toolbar for my macros i need to put icons instead of text buttons.
>
> When I copy/paste icons quality will be lost ,look is not sharp enough.(bmp).
>
> I created icons in (png,ico) fromat with magenta(255,0,255) color with is
> used by
> windows as trasparent color.
>
> Q: how can I add icons to the .dll?
> Q:in which .dll
> Q:Can I add it to my own dll and then insert reference in my .dot on
> myown.dll.
>
> Ps: some tutorial would be useful
>

Cindy Meister
INTER-Solutions, Switzerland
http://homepage.swissonline.ch/cindymeister (last update Jun 17 2005)
http://www.word.mvps.org

This reply is posted in the Newsgroup; please post any follow question or reply
in the newsgroup and not by e-mail :-)