+ Reply to Thread
Results 1 to 4 of 4

Run Macro when selecting from in-cell list (data validation)

  1. #1
    Forum Contributor
    Join Date
    04-14-2008
    Location
    Fort Collins, Co
    MS-Off Ver
    2016
    Posts
    107

    Run Macro when selecting from in-cell list (data validation)

    It has been years since I've done this but I remember it being possible.

    I would like to have a drop down that runs a certain macro depending on what list item the user selects.

    I searched google and the forum but could not find what I was looking for. Thanks for the help!
    Last edited by 4am; 10-08-2010 at 04:57 PM. Reason: Solved

  2. #2
    Forum Expert
    Join Date
    01-12-2007
    Location
    New Jersey
    Posts
    2,127

    Re: Run Macro when selecting from in-cell list (data validation)

    In my opinion, the best way to do this is to name a macro after each of the items in your Data Validation List. (ie, Data Validation: Red, Green, Blue create macros named Red Green Blue).

    Then, in the worksheet_change event, enter this macro (note, I'm assuming your data validation is in cell D1. Change that to suit)

    Please Login or Register  to view this content.
    Let me know if you can cater this to your needs

  3. #3
    Forum Contributor
    Join Date
    04-14-2008
    Location
    Fort Collins, Co
    MS-Off Ver
    2016
    Posts
    107

    Re: Run Macro when selecting from in-cell list (data validation)

    Wow that looks like a very efficient way to do this. I'm going to try it and get back to you. Thanks!

  4. #4
    Forum Contributor
    Join Date
    04-14-2008
    Location
    Fort Collins, Co
    MS-Off Ver
    2016
    Posts
    107

    Re: Run Macro when selecting from in-cell list (data validation)

    Thank you! It works.

+ 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