+ Reply to Thread
Results 1 to 2 of 2

2 Loops for 2 worksheets

  1. #1
    Registered User
    Join Date
    06-01-2010
    Location
    Richmond VA
    MS-Off Ver
    2007
    Posts
    2

    2 Loops for 2 worksheets

    Ok, I two worksheets within the same workbook. While I'm on the first worksheet I want to loop through the each vaule in a particular column. With that value, I need to go to worksheet 2 and look for that a match on the value from the original worksheet and then capture cell values within that row, go back to the original worksheet and plug those values in or replace data.

    I thought this could be done with two loops, but it doesn't seem quite efficient and I am having a problem, keeping active the sheet I need to loop on.

    Any help or guidance would be greatly apprecieated.

    Thanks.

  2. #2
    Forum Expert mikerickson's Avatar
    Join Date
    03-30-2007
    Location
    Davis CA
    MS-Off Ver
    Excel 2011
    Posts
    6,229

    Re: 2 Loops for 2 worksheets

    Would VLOOKUP formulas with lookup_values from the first sheet get the results that you want?
    Last edited by mikerickson; 06-02-2010 at 06:49 PM.
    _
    ...How to Cross-post politely...
    ..Wrap code by selecting the code and clicking the # or read this. Thank you.

+ 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