+ Reply to Thread
Results 1 to 5 of 5

VBA Search Column for matching string in another sheet

  1. #1
    Registered User
    Join Date
    06-13-2010
    Location
    Montreal
    MS-Off Ver
    Excel 2007
    Posts
    4

    VBA Search Column for matching string in another sheet

    Hello everyone - this is a very informative site and have found lots of help. I am a bit stuck though with a VBA question

    Here is a sample data file
    http://www.speedyshare.com/files/229...DataSample.xls

    What I am attempting to do is in the sheet Colour Spots, for each row, I want to find the same fishID in the Fish List sheet and then copy paste the river, site and predation for that fishID from Fish List (Sheet) to Colour Spots (sheet).

    In other words, I need to fill in site predation and year on the colour spots sheet by finding the proper information on the Fish List sheet.

    Thank you in advance
    Last edited by photopidge; 06-16-2010 at 01:18 PM.

  2. #2
    Forum Moderator Leith Ross's Avatar
    Join Date
    01-15-2005
    Location
    San Francisco, Ca
    MS-Off Ver
    2000, 2003, & 2010
    Posts
    23,258

    Re: VBA Search Column for matching string in another sheet

    Hello photopidge,

    The site reports your file was not found or never existed. If you still need a solution, please correct this problem. We can't help you if we don't the information.
    Sincerely,
    Leith Ross

    Remember To Do the Following....

    1. Use code tags. Place [CODE] before the first line of code and [/CODE] after the last line of code.
    2. Thank those who have helped you by clicking the Star below the post.
    3. Please mark your post [SOLVED] if it has been answered satisfactorily.


    Old Scottish Proverb...
    Luathaid gu deanamh maille! (Rushing causes delays!)

  3. #3
    Registered User
    Join Date
    06-13-2010
    Location
    Montreal
    MS-Off Ver
    Excel 2007
    Posts
    4

    Re: VBA Search Column for matching string in another sheet

    I apologize for my error.

    Here is the link
    http://www.speedyshare.com/files/229...DataSample.xls

    And I have not solved my problem, so any assistance will be greatly appreciated.

    Thank you in advance!

  4. #4
    Forum Moderator Leith Ross's Avatar
    Join Date
    01-15-2005
    Location
    San Francisco, Ca
    MS-Off Ver
    2000, 2003, & 2010
    Posts
    23,258

    Re: VBA Search Column for matching string in another sheet

    Hello photopidge,

    Welcome to the Forum!

    The macro below has been added to the attached. You run it by clicking he button on the "Colour Spots" worksheet labeled "Run". This matches the Fish IDs on the "Colour Spots" worksheet with those on the "Fish List" worksheet. When a match is found, the river, site, and predation data are copied over.
    Please Login or Register  to view this content.
    Attached Files Attached Files

  5. #5
    Registered User
    Join Date
    06-13-2010
    Location
    Montreal
    MS-Off Ver
    Excel 2007
    Posts
    4

    Re: VBA Search Column for matching string in another sheet

    Brilliant! Thanks so much

+ 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