+ Reply to Thread
Results 1 to 2 of 2

Loop through all worksheets in all sub-folders and enter name and number in A2 and B2 base

  1. #1
    Registered User
    Join Date
    04-29-2013
    Location
    India
    MS-Off Ver
    Excel 2007
    Posts
    1

    Exclamation Loop through all worksheets in all sub-folders and enter name and number in A2 and B2 base

    Please help !

    I want the macro to go through all the files in a sub-folder and look-up the file names mention in the another excel sheet "Sample 1", and open and paste the "name" in "A2" and "no" in B2.

    "Sample 1",

    A B
    name no.
    Central 5656
    Sustainable 5454
    Ancilliary 2151
    Directorate 57825
    Product 5458



    thanks in advance

  2. #2
    Forum Moderator davesexcel's Avatar
    Join Date
    02-19-2006
    Location
    Regina
    MS-Off Ver
    MS 365
    Posts
    13,486

    Re: Loop through all worksheets in all sub-folders and enter name and number in A2 and B2

    There are dozens of threads on this topic in this forum, use the search box. You can also check here on code to loop through folders.
    http://www.davesexcel.com/apps/blog/...r-of-workbooks
    When you need assistance with the code, then post back with a specific question.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Loop through folders and create folders
    By paesu57 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 04-07-2014, 11:23 AM
  2. Loop Through all Folders - *Ignore Folder Shortcuts*
    By R_S_6 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 08-08-2013, 05:53 AM
  3. [SOLVED] Renaming Folders in a macro but so far all I can do is loop thru the folder.
    By jody1234 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 07-03-2013, 02:22 AM
  4. Loop trough all folders and subfolders and copy data
    By forfiett in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 06-20-2013, 10:22 AM
  5. [SOLVED] VBA loop to copy a worksheet a number of times, assign name each time based on loop number
    By TBG in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 11-29-2012, 10:54 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