+ Reply to Thread
Results 1 to 2 of 2

Can this be done? (Trying to change an image in a user form)

  1. #1
    Registered User
    Join Date
    03-19-2012
    Location
    Raleigh
    MS-Off Ver
    Excel 2012
    Posts
    4

    Can this be done? (Trying to change an image in a user form)

    I was wondering if this could be done:

    I have a user form with a Combo Box in the upper left hand corner and an image box in the upper right hand corner. I want to vary the image displayed in the image box based on the value selected in the combo box. Oh, and to make things even more complicated, I would like the images to be saved in the excel sheet itself instead of accessing my hard drive to look them up (because I want to be able to mail this excel sheet out to other people who won't have the images in their hard drive).

    Can this be done? Sorry to be such a novice, but I am trying my best to learn this language. :-(

  2. #2
    Forum Contributor
    Join Date
    07-27-2012
    Location
    California, USA
    MS-Off Ver
    Excel 2003
    Posts
    198

    Re: Can this be done? (Trying to change an image in a user form)

    There are procedures written by Stephen Bullen that allow you to
    copy and paste a picture into a form's image object. I've used it
    for quite a long time in my personal 'hobby' projects.

    Here is sample code that uses PastePicture in the attached workbook.
    Please Login or Register  to view this content.
    Attached Files Attached Files
    Last edited by xLJer; 02-16-2013 at 09:40 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