Quote:
> How can I programatically take images from either a file (.bmp) or an
> ImageList control and use them as faces for a commandbar control?
> Thanks, Alex
I don't know how.
For programatic access, I store myy custom button faces on commandbuttons
on a hidden, disabled commandbar located in either the current template
a global template or a template in a known location which I temporarily
make global with something like:
AddIns("C:\WINDOWS\Desktop\BobsGlobal.dot").Installed = True
If "My Paste Special..." is the caption of a CommandButton on a
CommandBar named "My Custom Faces" which is located in a global
template (normal.dot for instance), then the following VBA command
will copy it's face to the clipboard. (Makes no difference if the
commandbar is enabled or hidden.)
CommandBars("My Custom Faces").Controls("My Paste Special...").CopyFace
Hope this helps,
Bob Dietz