+ Reply to Thread
Results 1 to 4 of 4

ComboBox linked to a list of names which when a name is chosen changes a picture ?

  1. #1
    Registered User
    Join Date
    02-09-2012
    Location
    Brisbane,Australia
    MS-Off Ver
    Excel 2010
    Posts
    10

    ComboBox linked to a list of names which when a name is chosen changes a picture ?

    Hi guys i have a list of peoples names on a excel spreadsheet.

    i would like to use a combobox on a userform so when using the dropdown
    box and selecting the persons name a picture changes to the persons name.

    is it possible ? in VBA

  2. #2
    Registered User
    Join Date
    01-29-2012
    Location
    United Kingdom
    MS-Off Ver
    MS Office 2003/MS Office 2010
    Posts
    45

    Re: ComboBox linked to a list of names which when a name is chosen changes a picture

    Yes it is possible. Can you upload file?

  3. #3
    Registered User
    Join Date
    01-29-2012
    Location
    United Kingdom
    MS-Off Ver
    MS Office 2003/MS Office 2010
    Posts
    45

    Re: ComboBox linked to a list of names which when a name is chosen changes a picture

    If it helps, i use following way:

    I have userfor AddData
    One of comboboxes has "Line 1", "Line 2", "Line 3", "Line 4","Line 5", "Line 6","Line 7", "Line 8"
    I have files: "Line1.bmp", "Line2.bmp", "Line3.bmp", "Line4.bmp","Line5.bmp", "Line6.bmp","Line7.bmp", "Line8.bmp"

    Folder destination is stored:Sheets("Admin Data").Cells(3, 4).Value

    Please Login or Register  to view this content.

  4. #4
    Forum Expert OnErrorGoto0's Avatar
    Join Date
    12-30-2011
    Location
    I DO NOT POST HERE ANYMORE
    MS-Off Ver
    I DO NOT POST HERE ANYMORE
    Posts
    1,655

    Re: ComboBox linked to a list of names which when a name is chosen changes a picture

    Where are the pictures stored? In a folder, or in the workbook? If the former, go with trenars' code; if the latter, if you can embed them using ActiveX Image controls, you can simply assign the Picture property of one to the Picture property of an Image control on the form.
    Good luck.

+ 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