+ Reply to Thread
Results 1 to 2 of 2

Put a custom image in a CommandBar Control?

  1. #1
    Registered User
    Join Date
    10-26-2004
    Location
    Portland, Oregon
    MS-Off Ver
    Excel in Windows
    Posts
    49

    Put a custom image in a CommandBar Control?

    I have a 16x16 image that I want to use for a context sensitive menu item I created. When a user right-clicks on a cell, the Cell CommandBar menu displays and my custom addition is at the bottom. I would like to put my own custom image in there instead of using a stock FaceId value. How do I do this? Can I have the image saved within the workbook (in a xlVeryHidden sheet) instead of having to load it? For example, I don't want :
    Please Login or Register  to view this content.
    I'd rather do something along the lines of (I want to reference the image from within the workbook):
    Please Login or Register  to view this content.
    Here's my code so far and it works:
    Please Login or Register  to view this content.
    ~Toby

  2. #2
    Forum Contributor
    Join Date
    12-11-2004
    MS-Off Ver
    2007
    Posts
    137
    Hello,

    You could stock your custom picture in an ImageList control an call it in your CommandBar:

    Please Login or Register  to view this content.

    Please Login or Register  to view this content.


    Regards
    michel
    Last edited by michelxld; 03-15-2008 at 01:47 PM.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1