+ Reply to Thread
Results 1 to 6 of 6

VBA Userform and Pictures

  1. #1
    Registered User
    Join Date
    04-22-2013
    Location
    london
    MS-Off Ver
    Excel 2003
    Posts
    10

    VBA Userform and Pictures

    Hi all,

    I need some help with a sample excel database. In one userform there is a combobox with a list of names and below this list is a image field. I want to be able to select a name from the list and then display their image in the image field. Any help or sample downloads would be highly appreciated.

    Regards
    Kumarin

  2. #2
    Forum Contributor
    Join Date
    01-17-2013
    Location
    Belgium
    MS-Off Ver
    Excel 2010
    Posts
    211

    Re: VBA Userform and Pictures

    in cases like this an example workbook attached to your post would help this can be done by using the advanced options when you post

    that being said you will need to work with
    Please Login or Register  to view this content.
    or
    Please Login or Register  to view this content.
    If solved remember to mark Thread as solved , to mark your thread as Solved select Thread Tools and click Mark thread as Solved.

    I can't read the mind of my wife so then I get picture but no sound .... and then I mostly get the idea, same goes here picture your outcome and I get the idea.

  3. #3
    Registered User
    Join Date
    04-22-2013
    Location
    london
    MS-Off Ver
    Excel 2003
    Posts
    10

    Re: VBA Userform and Pictures

    Book1.xlsm

    Herein attached is what I have started with. Sheet one contains the info.

    Tnx again...

  4. #4
    Forum Contributor
    Join Date
    01-17-2013
    Location
    Belgium
    MS-Off Ver
    Excel 2010
    Posts
    211

    Re: VBA Userform and Pictures

    well i was hoping the pics would be stored somewhere rather then be in the workbook as shapes

    this is for pics at some give location to already give you a start
    Please Login or Register  to view this content.

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

    Re: VBA Userform and Pictures

    Hello kumarinrajoo,

    The attached workbook will display the picture for the person selected on in the UserForm Image control. This is done by copying the picture to the clipboard and pasting it into the Image control as a Picture object. The API calls used to do this are for Windows systems using 32 bit operating systems. If you plan to use this on 64 bit platforms, the API calls will need to be changed. I have them if you need them.
    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!)

  6. #6
    Registered User
    Join Date
    04-22-2013
    Location
    london
    MS-Off Ver
    Excel 2003
    Posts
    10

    Re: VBA Userform and Pictures

    Hi all,

    thanks very much for all your help. This is great.

    Tnx again.

+ 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. Help with Pictures on Userform
    By rosboy in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 06-27-2013, 02:02 PM
  2. Userform to update comments with pictures
    By Marco-Kun in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 12-17-2011, 08:12 PM
  3. Pictures in Userform
    By zimbo109 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 05-10-2010, 10:07 AM
  4. Inputting pictures into UserForm
    By DCHill in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 05-11-2009, 05:58 AM
  5. Userform Pictures
    By Danielle123 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 03-25-2008, 09:52 AM

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