+ Reply to Thread
Results 1 to 3 of 3

macro to copy row based on drop down list

  1. #1
    Registered User
    Join Date
    12-29-2005
    Posts
    90

    macro to copy row based on drop down list

    im trying to get a row to copy from shreet 2 to sheet 1 based on a drop down list on sheet 1 that links to the list of names on sheet 2 but im stuck. i can get the dropdown list up but cant get it to link correctly to the list of names on sheet 2

    i've attached a copy so anyone can look

    can any one help me
    Attached Files Attached Files

  2. #2
    Forum Moderator davesexcel's Avatar
    Join Date
    02-19-2006
    Location
    Regina
    MS-Off Ver
    MS 365
    Posts
    13,525
    Hi,
    Try placing this formula into,
    cell F10

    =VLOOKUP($D$10,main!D7:F13,3)
    And see what happens when you change the name

    You could name the range of the staff members then use that named range as the source in data validation

    here is a site to learn data validation, and search around the site to find out more on Vlookup

    http://www.contextures.com/xlDataVal01.html

  3. #3
    Forum Contributor VBA Noob's Avatar
    Join Date
    04-25-2006
    Location
    London, England
    MS-Off Ver
    xl03 & xl 07(Jan 09)
    Posts
    11,988
    Here's some crude code.

    You need to first

    1) Name D10 on sheet Front End as Filter_Name and
    2) Name A5:AB13 on sheet main as Database

    Instructions on naming ranges can be found on Link

    http://www.contextures.com/xlNames01.html

    Please Login or Register  to view this content.
    _________________________________________


    Credo Elvem ipsum etian vivere
    _________________________________________
    A message for cross posters

    Please remember to wrap code.

    Forum Rules

    Please add to your signature if you found this link helpful. Excel links !!!

+ 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