+ Reply to Thread
Results 1 to 4 of 4

How to Copy cell value of all files which inside of folder and append to Master file

  1. #1
    Registered User
    Join Date
    08-16-2013
    Location
    UDUPI
    MS-Off Ver
    Excel 2010
    Posts
    9

    Question How to Copy cell value of all files which inside of folder and append to Master file

    Dear all

    I have 3000 files in folder called c:\mdetails with different filename but same format. I want to create seperate Master file called Completelist.xlsx by copying some cell of each file and append it to completelist.xlsx

    Cell Nos of files--------------W8 ------------> A2--------Cell no of Completelist.xlsx
    in the folder mdetails-------F6 ------------> B2--------
    to be copied to--------------F8 ------------> C2 --------
    Completelist.xlsx ----------- F10 -----------> D2
    ------------------------------- F12 -----------> E2
    ------------------------------- F21 -----------> K2
    ------------------------------- F23 -----------> L2

    Sample of files attached.

    Please provide the help.

    Best Regards,
    Attached Files Attached Files

  2. #2
    Forum Expert
    Join Date
    11-29-2010
    Location
    Ukraine
    MS-Off Ver
    Excel 2019
    Posts
    4,168

    Re: How to Copy cell value of all files which inside of folder and append to Master file

    hi snsuvarna, please check attachment, press Run button
    Attached Files Attached Files

  3. #3
    Registered User
    Join Date
    01-04-2012
    Location
    Derby, England
    MS-Off Ver
    2010, 2013 2016 Pro
    Posts
    85

    Re: How to Copy cell value of all files which inside of folder and append to Master file

    Hi, I am interesting in what you have done to create the code for this as I would like to do something like this myself, can you briefly explain how you have created the code to select the individual cells.

    Also is it possible to manipulate the file structure that it only looks for files that begin with "PJ ?????????????? .xlsx" as I have many files in many folders, also would it look in sub folders.

    Thanks for any help

  4. #4
    Forum Expert
    Join Date
    11-29-2010
    Location
    Ukraine
    MS-Off Ver
    Excel 2019
    Posts
    4,168

    Re: How to Copy cell value of all files which inside of folder and append to Master file

    @RoyLittle0
    1. To select files under the specified mask: "PJ ?????????????? .xlsx" this line should be changed to include wildcard file name to look for:
    Please Login or Register  to view this content.
    2. The code gets the folder to inspect, opens every file under the specified pattern, takes non-empty cells as per template to an array and outputs final result on the sheet
    3. It would not look in subfolders

+ 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. Copy cell value of all file in the folder and append to Master file
    By snsuvarna in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 09-04-2013, 11:55 AM
  2. [SOLVED] Copy/paste Range of worksheets of several files in a folder to a master file
    By mrjinx007 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 06-18-2013, 01:02 PM
  3. Run macro on many csv files and append only one row into master excel file
    By Novice123 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 08-31-2012, 09:45 AM
  4. Replies: 3
    Last Post: 02-22-2012, 11:40 AM
  5. Append multiple csv files into master file?
    By Delta223 in forum Excel General
    Replies: 28
    Last Post: 01-30-2010, 02:49 AM

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