+ Reply to Thread
Results 1 to 5 of 5

Macro to start AFTER choise from validation drop down list

  1. #1
    Forum Contributor
    Join Date
    07-26-2012
    Location
    Netherlands
    MS-Off Ver
    Excel 2016 Office 365 ProPlus
    Posts
    822

    Macro to start AFTER choise from validation drop down list

    Hi all,
    Been looking at several of these solutions to get a macro to run AFTER one makes a choise in a drop down menu.
    But (and thats why I write after in capitals) all these solutions only work for me when I click the cell in which the validation is.
    That is not what one would want I think.

    Lets say I have a validation in cell C3.
    It are several names of person.
    So I not even want to run a specific macro per person. It is even simpeler.
    I want to run just 1 macro and then in the macro based on the name chosen I will identify what needs to be done.

    However if I even can find a macro that would do what I want it starts right when I select C3.
    But it must only activate when I CHANGE C3. Then it should call my macro (whatever name) and never under different circumstances.

    Anybody able to help me with this code?
    I would assume it to be a very simple few phrases code...
    Thanks!

  2. #2
    Valued Forum Contributor smuzoen's Avatar
    Join Date
    10-28-2011
    Location
    Brisbane, Australia
    MS-Off Ver
    Excel 2003/2007/2010
    Posts
    610

    Re: Macro to start AFTER choise from validation drop down list

    Say the drop down list is in H7 in sheet 1 then this code would go into Sheet 1 and would run the macro called myMacro AFTER the selection is made from drop down list- see attached workbook. I assume this is what you mean.
    Please Login or Register  to view this content.
    Attached Files Attached Files
    Hope this helps.
    Anthony
    Pack my box with five dozen liquor jugs
    PS: Remember to mark your questions as Solved once you are satisfied. Please rate the answer(s) by selecting the Star in the lower left next to the Triangle. It is appreciated?

  3. #3
    Forum Contributor bonny24tycoon's Avatar
    Join Date
    04-02-2012
    Location
    Hell
    MS-Off Ver
    Excel 2003 & 2007
    Posts
    405

    Re: Macro to start AFTER choise from validation drop down list

    Hi There,


    Goto VBA Editor and Paste the below code on the sheet where you would have the C3 changed (note - do not add the below as a module as its a worksheet code)

    Please Login or Register  to view this content.
    Thanks,

    Bonny Tycoon


  4. #4
    Forum Contributor
    Join Date
    07-26-2012
    Location
    Netherlands
    MS-Off Ver
    Excel 2016 Office 365 ProPlus
    Posts
    822

    Re: Macro to start AFTER choise from validation drop down list

    see....I new it was simple!
    I just was doing it slightly wrong...thanks guys and thanks smuzoen for the example.
    Very helpful!

  5. #5
    Forum Expert Cutter's Avatar
    Join Date
    05-24-2004
    Location
    Ontario,Canada
    MS-Off Ver
    Excel 2010
    Posts
    6,451

    Re: Macro to start AFTER choise from validation drop down list

    @ rpinxt

    Based on your last post it seems that you are satisfied with the solution(s) you've received but you haven't marked your thread as SOLVED. I'll do that for you now but please keep in mind for your future threads that Rule #9 requires you to do that yourself. If your problem has not been solved you can use Thread Tools (located above your first post) and choose "Mark this thread as unsolved".
    Thanks.

    Also, as a new member of the forum, you may not be aware that you can thank those who have helped you by clicking the small star icon located in the lower left corner of the post in which the help was given. By doing so you can add to the reputation(s) of those who helped.

+ 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