+ Reply to Thread
Results 1 to 3 of 3

Dropdown lists and Macros...????

  1. #1
    Registered User
    Join Date
    10-10-2006
    Posts
    68

    Dropdown lists and Macros...????

    Hello,

    I would like to be able to run a specific macro for each item i have in a dropdown list in my worksheet...

    Example:

    ANA
    EDM
    FLA
    LA
    SJ
    TB

    are the items in my validation dropdown list.

    By using the mouse (not shortcut keys), i would like to select a team from the dropdown list for which a specific macro would be performed (one specific to each team)

    Basically this would automatically update each team's info from another sheet without me having to manually copy and paste them between sheets..




    Thanks.

  2. #2
    Forum Contributor WinteE's Avatar
    Join Date
    04-07-2007
    Location
    Netherlands
    Posts
    544
    Supposing your listbox is stored in cell A1 :

    Please Login or Register  to view this content.
    Copy this code into the VBA object of the worksheet.

    Erik
    Just keep it simple !


    http://www.excelguide.eu
    In English as well as in Dutch

  3. #3
    Forum Expert
    Join Date
    01-15-2007
    Location
    Brisbane, Australia
    MS-Off Ver
    2007
    Posts
    6,591
    Hi

    Say your macros were the same name as your entries in the dropdown, and your drop down result was in A1 then something like

    Please Login or Register  to view this content.
    would call the relevant sub based on the result in A1.

    rylo

+ 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