+ Reply to Thread
Results 1 to 4 of 4

Macro choice triggered by a drop-down list

  1. #1
    Registered User
    Join Date
    10-24-2011
    Location
    Orlando, FL
    MS-Off Ver
    Office 365 for Business
    Posts
    88

    Macro choice triggered by a drop-down list

    I am trying to write a macro that will:
    Run the macro "Sub Emailstraightruckreq()" (or Module48) if the second value in my drop-down list in cell A28 of my current worksheet is selected.
    I also want this macro to run the macro "Sub Emailshowreq()" (or Module8) if the first value in my drop-down list in cell A28 of my current worksheet is selected.

    I don't know where to start, or even if you can run two macros within a macro.

    I hope this makes sense??

    Thank you.

  2. #2
    Forum Expert
    Join Date
    07-31-2010
    Location
    California
    MS-Off Ver
    Excel 2007
    Posts
    4,070

    Re: Macro choice triggered by a drop-down list

    One option, put in the worksheet change event. You will have to modify to meet your specific information.

    Please Login or Register  to view this content.
    If you don't want this as a worksheet change and want it only done when you want to run it as a macro then


    Please Login or Register  to view this content.
    Last edited by stnkynts; 12-05-2012 at 04:44 PM.

  3. #3
    Forum Expert tigeravatar's Avatar
    Join Date
    03-25-2011
    Location
    Colorado, USA
    MS-Off Ver
    Excel 2003 - 2013
    Posts
    5,361

    Re: Macro choice triggered by a drop-down list

    Something like this should work. Change "First value" to be the actual first value and change "Second value" to be the actual second value. This code goes in the worksheet module of the worksheet that contains the drop-down list in cell A28
    Please Login or Register  to view this content.

    [EDIT]: Beat to it by stnkynts
    Last edited by tigeravatar; 12-05-2012 at 04:48 PM. Reason: Added edit
    Hope that helps,
    ~tigeravatar

    Forum Rules: How to use code tags, mark a thread solved, and keep yourself out of trouble

  4. #4
    Registered User
    Join Date
    10-24-2011
    Location
    Orlando, FL
    MS-Off Ver
    Office 365 for Business
    Posts
    88

    Re: Macro choice triggered by a drop-down list

    I used the second option. It worked great! You are awesome!!

+ 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