+ Reply to Thread
Results 1 to 7 of 7

Embed image to button using Image control

  1. #1
    Forum Contributor
    Join Date
    04-23-2013
    Location
    India
    MS-Off Ver
    Excel 2003 and 2007
    Posts
    227

    Embed image to button using Image control

    Hello,

    How can i embed an image to a commandbutton in userform using image control?

    I just want to insert a 'Play' image to my 'Play' button. What i want to accomplish is, when the userform initialize, the 'Play' image is embedded in the commandbutton.

  2. #2
    Forum Guru Izandol's Avatar
    Join Date
    03-29-2012
    Location
    *
    MS-Off Ver
    Excel 20(03|10|13)
    Posts
    2,581

    Re: Embed image to button using Image control

    You may use:
    Please Login or Register  to view this content.
    • Please remember to mark threads Solved with Thread Tools link at top of page.
    • Please use code tags when posting code: [code]Place your code here[/code]
    • Please read Forum Rules

  3. #3
    Forum Contributor
    Join Date
    04-23-2013
    Location
    India
    MS-Off Ver
    Excel 2003 and 2007
    Posts
    227

    Re: Embed image to button using Image control

    Hi Izandol, I've tried your suggestion but the button turns 'unclickable'?

  4. #4
    Forum Contributor
    Join Date
    12-14-2013
    Location
    Tilburg, Nederland
    MS-Off Ver
    Excel 2010
    Posts
    256

    Re: Embed image to button using Image control

    BMP must be 256 colors or lower.
    Gif as alternative

    Please Login or Register  to view this content.

  5. #5
    Forum Contributor
    Join Date
    04-23-2013
    Location
    India
    MS-Off Ver
    Excel 2003 and 2007
    Posts
    227

    Re: Embed image to button using Image control

    Thanks Gerard!, it works!. Follow-up question, how can i maximize the size of the picture to fit it in the button? I just want the size of the picture like the width and height of the commandbutton.

  6. #6
    Forum Contributor
    Join Date
    12-14-2013
    Location
    Tilburg, Nederland
    MS-Off Ver
    Excel 2010
    Posts
    256

    Re: Embed image to button using Image control

    I use :
    Please Login or Register  to view this content.
    The picture I use is larger than the command button and it scales to the command button.

    It's also possible to adjust the size of the button to the size of the picture:
    Please Login or Register  to view this content.

  7. #7
    Forum Contributor
    Join Date
    04-23-2013
    Location
    India
    MS-Off Ver
    Excel 2003 and 2007
    Posts
    227

    Re: Embed image to button using Image control

    Thanks! it helps a lot!

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Displaying and Updating Image Dynamically (ActiveX Image Control?)
    By VTHokie11 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 11-02-2011, 10:57 AM
  2. Image Position within ActiveX Image Control
    By gerryiscool in forum Excel General
    Replies: 0
    Last Post: 09-07-2011, 02:08 AM
  3. Embed Image JPG and Type Over it.
    By WileECoyote in forum Excel General
    Replies: 1
    Last Post: 04-06-2011, 07:52 AM
  4. Embed image in cell
    By sschroeder in forum Excel General
    Replies: 11
    Last Post: 12-16-2009, 03:56 PM
  5. Embed image in cell
    By AceX in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 10-26-2008, 02:33 PM

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