It must be a BMP of 16x16 with 256 colors to comply with the Office button
picture specs.
--
Ken Slovak
[MVP - Outlook]
http://www.slovaktech.com
Author: Absolute Beginner's Guide to Microsoft Office Outlook 2003
Reminder Manager, Extended Reminders, Attachment Options
http://www.slovaktech.com/products.htm
"RobL" <(E-Mail Removed)> wrote in message
news:30E47631-6780-4FDB-84A6-(E-Mail Removed)...
> Hello all,
>
> can anyone tell me the constraints on an IPictureDisp object, which will
> allow it to be used in a CommandBarButton.Picture instruction?
>
> I have a form with an ImageList on it and am trying to run the following
> code (not in debug mode I hasten to add. I build the project first):
>
> objButton.Style = msoButtonmsoButtonIconAndCaption
> Set picIcon = frmForm.imgImageList.ListImages.Item(1).Picture
> objButton.Picture = picIcon
>
> and get "Invalid procedure call or argument" when the last line runs.
>
> My current best guess is that the image I'm trying to use is either the
> wrong size or the wrong colour depth.
>
> Am I correct?
>
> Thanks,
>
> Rob Levy
> --
> Software Support Engineer
> i2 Ltd.