+ Reply to Thread
Results 1 to 3 of 3

Add buttons to a sheet with picture or icon

  1. #1
    Registered User
    Join Date
    06-24-2010
    Location
    Antwerp
    MS-Off Ver
    Excel 2007
    Posts
    3

    Add buttons to a sheet with picture or icon

    I've made a macro which adds different buttons to my sheet.
    How can I change the button.caption to a picture instead of text?

    Thanks in advance
    Willy

  2. #2
    Registered User
    Join Date
    03-24-2011
    Location
    Bristol
    MS-Off Ver
    Excel 2000
    Posts
    36

    Re: Add buttons to a sheet with picture or icon

    Hi Zeller

    while in design mode right click on the button and choose properties from the drop down menu.

    The list of fields includes picture, if you click in this you can add a picture from file, other options to zoom the picture etc are also there.

    hope this helps

    cheers

    col

  3. #3
    Forum Moderator Leith Ross's Avatar
    Join Date
    01-15-2005
    Location
    San Francisco, Ca
    MS-Off Ver
    2000, 2003, & 2010
    Posts
    23,258

    Re: Add buttons to a sheet with picture or icon

    Hello Zeiler,

    Welcome to the Forum!

    Provided your control is an ActiveX control (Control Toolbox) you can also change the Picture through code. You can load the picture from a file like this...
    Please Login or Register  to view this content.

    The example above assumes the ActiveX control is named "CommandButton1" and is located on the worksheet named "Sheet1". Use the PicturePosition property to position the picture on the control relative to the caption.
    Sincerely,
    Leith Ross

    Remember To Do the Following....

    1. Use code tags. Place [CODE] before the first line of code and [/CODE] after the last line of code.
    2. Thank those who have helped you by clicking the Star below the post.
    3. Please mark your post [SOLVED] if it has been answered satisfactorily.


    Old Scottish Proverb...
    Luathaid gu deanamh maille! (Rushing causes delays!)

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Tags for this Thread

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