Results 1 to 6 of 6

VBA double-loop search and copy

Threaded View

  1. #1
    Registered User
    Join Date
    03-12-2014
    Location
    Central Texas
    MS-Off Ver
    Excel 2010
    Posts
    55

    Unhappy VBA double-loop search and copy

    Hey ya'll,
    Once again, I've searched the forum and Google for the answer and I cannot find it, so I'm hoping it's locked away in someone's wisdom on this forum.
    I don't know how to begin with this one, but I've got an idea what I need.

    What I'm looking for is, as the title suggests, Is a loop within a loop to search a specific cell on every worksheet, in every file in a specific list. I've tried searching for "search" VBA codes, for "loop" VBA codes and I don't know either good enough to bend them to my needs, nor to combine them (usually, I just end up messing the whole thing up so I can't even fix it).

    In the posted example, I put the three pages for the example and manually entered the information I'm looking for.
    The basics are:
    1) Outer loop: search for a file, with an increment-able cell reference as part of the filename.
    2) Inner loop: search each worksheet, with an increment-able cell reference as the whole worksheet name.
    3) Copy the cell $D$1 (of the example) off each worksheet to the table on the MasterTrack file.
    Each worksheet in the Searched-For file is a specific name represented by the cells of Column A on the YahBoh worksheet of the MasterTrack file.
    Each Searched-For file begins with "Yadayada" and contains a specific name in the cells of Row1 on the YahBoh worksheet of the MasterTrack file.
    The same cell ($D$1 of the example) will be copied from every worksheet, so there's no need for a 'search term' with that.

    I hope I explained this clear enough. If you have a start, a website that'll show something relevant, anything will help.

    Please, thank you.
    Attached Files Attached Files
    Oh! I get it. I need rep--->҉

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Double click cell - copy data to new sheet - create a list from double clicking
    By kakky in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 05-04-2015, 11:14 PM
  2. double loop until the end (?)
    By pccamara in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 01-21-2015, 10:45 AM
  3. Copy double-clicked cell to next empty row in different sheet with each double-click
    By erhathaway in forum Excel Programming / VBA / Macros
    Replies: 11
    Last Post: 08-25-2013, 12:06 AM
  4. [SOLVED] Copy dynamically changing column and Paste using VBA Loop (Loop within Loop)
    By nixon72 in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 02-12-2013, 12:46 PM
  5. loop Search, copy paste,next search, copy paste ...
    By Macrodroid in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 11-11-2011, 03:19 AM
  6. a double loop?
    By jimmy1981 in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 08-03-2010, 10:48 AM
  7. If else loop to search data and copy it between workbooks
    By exc in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 08-04-2009, 02:51 PM

Tags for this Thread

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