+ Reply to Thread
Results 1 to 6 of 6

Use Data Validation result in Macro

  1. #1
    Forum Contributor
    Join Date
    05-04-2015
    Location
    Atlanta GA
    MS-Off Ver
    2010
    Posts
    106

    Use Data Validation result in Macro

    I have a Data validation thingy that is connected to a list of names. I have a picture assigned to each name.

    I've got the Image embedded in the sheet ready for the picture that I choose from the thingy.

    Is there a way to make the picture appear just by clicking on a name in the DV thingy?

  2. #2
    Administrator 6StringJazzer's Avatar
    Join Date
    01-27-2010
    Location
    Tysons Corner, VA, USA
    MS-Off Ver
    MS365 Family 64-bit
    Posts
    24,721

    Re: Use Data Validation result in Macro

    As you suggest in your thread title, you would need a macro to do this. If you attach a file with your thingy I can be more specific.

    The paper clip icon does not work for attachments. Instead, under the text box where you type your reply click the Go Advanced button. On the next screen scroll down and click on Manage Attachments, which will show a pop-up window to Select and Upload a file. Then close the window.
    Jeff
    | | |會 |會 |會 |會 | |:| | |會 |會
    Read the rules
    Use code tags to [code]enclose your code![/code]

  3. #3
    Forum Contributor
    Join Date
    05-04-2015
    Location
    Atlanta GA
    MS-Off Ver
    2010
    Posts
    106

    Re: Use Data Validation result in Macro

    What I want is as soon I click on a name in the drop down box in cells M5, the picture will change to the chosen player. These pictures are in a folder called "photos. Right now, I have to choose the player from the list and then click the macro button that's hovering over the picture.

    I want it to be a one step process.
    Attached Files Attached Files

  4. #4
    Administrator 6StringJazzer's Avatar
    Join Date
    01-27-2010
    Location
    Tysons Corner, VA, USA
    MS-Off Ver
    MS365 Family 64-bit
    Posts
    24,721

    Re: Use Data Validation result in Macro

    I am unable to test this without having your photo files but I think this does what you want.
    Attached Files Attached Files

  5. #5
    Forum Contributor
    Join Date
    05-04-2015
    Location
    Atlanta GA
    MS-Off Ver
    2010
    Posts
    106

    Re: Use Data Validation result in Macro

    You got it! Thanks once again for your help!

  6. #6
    Administrator 6StringJazzer's Avatar
    Join Date
    01-27-2010
    Location
    Tysons Corner, VA, USA
    MS-Off Ver
    MS365 Family 64-bit
    Posts
    24,721

    Re: Use Data Validation result in Macro

    Glad to help!

    If your question has been answered please mark your thread as "Solved" so that members will know by looking at the thread title that your problem is solved. Go to the menu immediately above your first post to the thread and click on Thread Tools. From the dropdown menu select "Mark this thread as solved..."

    If a member helped you solve your problem, consider adding to their reputation by clicking on the star icon below their name.

+ 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. Apply Data Validation to result of Vlookup?
    By ghettobob in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 10-09-2017, 09:27 AM
  2. [SOLVED] Data Validation rule based on the result of UDF
    By hohlick in forum Excel General
    Replies: 4
    Last Post: 03-26-2015, 06:04 AM
  3. Data Validation List based on formula result
    By dancing-shadow in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 03-25-2015, 11:49 AM
  4. [SOLVED] Multiple Result Lookup inside Data Validation List
    By Whizbang in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 02-13-2014, 12:53 PM
  5. Data Validation from Autofliter result.
    By brynbaker in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 10-28-2012, 02:01 PM
  6. [SOLVED] Index Match - Data Validation List - Result N/A
    By Veloso in forum Excel General
    Replies: 4
    Last Post: 07-21-2012, 12:49 PM
  7. Replies: 6
    Last Post: 07-17-2009, 01:35 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