+ Reply to Thread
Results 1 to 7 of 7

Multiple Macros From Multiple Dropdown Lists on one sheet.

  1. #1
    Registered User
    Join Date
    12-29-2013
    Location
    Denver, CO
    MS-Off Ver
    Excel 2013
    Posts
    2

    Multiple Macros From Multiple Dropdown Lists on one sheet.

    Hi All,

    I am trying to create a code that will pull macros from three separate dropdown lists (my example only has two) In this instance, this is for a mortgage audit and I want separate macros based upon the state the loan is in and if it's a government loan or not. Can someone tell me where I am going wrong? Thanks!


    Private Sub Worksheet_Change(ByVal Target As Range)
    If Not Intersect(Target, Range("B4")) Is Nothing Then
    Select Case Range("B4")
    Case "California": California
    Case "Florida": Florida
    End Select
    End If
    End Sub




    Private Sub Worksheet_Change(ByVal Target As Range)
    If Not Intersect(Target, Range("B3")) Is Nothing Then
    Select Case Range("B3")
    Case "FNMA": FNMA
    Case "FHMLC": FHMLC
    Case "VA": VA
    Case "FHA": FHA
    End Select
    End If
    End Sub

  2. #2
    Forum Expert Fotis1991's Avatar
    Join Date
    10-11-2011
    Location
    Athens(The homeland of the Democracy!). Greece
    MS-Off Ver
    Excel 1997!&2003 & 2007&2010
    Posts
    13,744

    Re: Multiple Macros From Multiple Dropdown Lists on one sheet.

    Welcome to the forum.

    Pls take some minutes to read forum rules and specially-in this case- rule#3.
    Regards

    Fotis.

    -This is my Greek whisper to Europe.

    --Remember, saying thanks only takes a second or two. Click the little star * below, to give some Rep if you think an answer deserves it.

    Advanced Excel Techniques: http://excelxor.com/

    --KISS(Keep it simple Stupid)

    --Bring them back.

    ---See about Acropolis of Athens.

    --Visit Greece.

  3. #3
    Forum Expert Mumps1's Avatar
    Join Date
    10-10-2012
    Location
    Toronto, Canada
    MS-Off Ver
    Excel 2010, 2013
    Posts
    7,821

    Re: Multiple Macros From Multiple Dropdown Lists on one sheet.

    You cannot have more than one Worksheet_Change event associated with any one sheet so you have to combine your code into one macro. The following macro assumes you have a drop down list in cells B3, B4 and B5. I have entered generic data for B5. Change it to suit your needs. Please let me know how it works out.
    Please Login or Register  to view this content.

  4. #4
    Registered User
    Join Date
    12-29-2013
    Location
    Denver, CO
    MS-Off Ver
    Excel 2013
    Posts
    2

    Re: Multiple Macros From Multiple Dropdown Lists on one sheet.

    MUMPS1 You are a lifesaver! Thanks so much!

  5. #5
    Forum Expert Mumps1's Avatar
    Join Date
    10-10-2012
    Location
    Toronto, Canada
    MS-Off Ver
    Excel 2010, 2013
    Posts
    7,821

    Re: Multiple Macros From Multiple Dropdown Lists on one sheet.

    My pleasure!

  6. #6
    Forum Expert Fotis1991's Avatar
    Join Date
    10-11-2011
    Location
    Athens(The homeland of the Democracy!). Greece
    MS-Off Ver
    Excel 1997!&2003 & 2007&2010
    Posts
    13,744

    Re: Multiple Macros From Multiple Dropdown Lists on one sheet.

    Quote Originally Posted by Mumps1 View Post
    My pleasure!
    By the way, my suggestion is to refresh the page before you post a reply, even that Op choosed to ignore mod request this time.

  7. #7
    Forum Expert Mumps1's Avatar
    Join Date
    10-10-2012
    Location
    Toronto, Canada
    MS-Off Ver
    Excel 2010, 2013
    Posts
    7,821

    Re: Multiple Macros From Multiple Dropdown Lists on one sheet.

    My apologies, Fotis1991. I did not see your post until after I had posted my reply.

+ 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. Dropdown lists - multiple
    By lrussell490 in forum Access Tables & Databases
    Replies: 2
    Last Post: 09-10-2013, 03:04 PM
  2. Multiple Dropdown lists
    By lrussell490 in forum Hello..Introduce yourself
    Replies: 1
    Last Post: 09-10-2013, 09:18 AM
  3. Creating forms with multiple dropdown lists
    By AnnaDana in forum Excel General
    Replies: 3
    Last Post: 06-28-2013, 02:54 PM
  4. Replies: 3
    Last Post: 02-20-2013, 12:54 AM
  5. Run Macros from Multiple Drop down lists in same sheet
    By pickledmuffin in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 10-09-2007, 11:20 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