+ Reply to Thread
Results 1 to 2 of 2

Macro to copy some cells in some excel files in a folder to a master file

  1. #1
    Registered User
    Join Date
    09-30-2013
    Location
    Nigeria
    MS-Off Ver
    Excel 2007
    Posts
    2

    Macro to copy some cells in some excel files in a folder to a master file

    Good Morning Everybody

    I am new to Macro Programming and I need help to accomplish a task assigned to me by my boss. I want a macro that will copy a particular cell such as "C2" in 5 different excel files in a folder to a master file. That is, all the values in cell "C2" in all the excel files should be updated serially to a master excel file. For example, assuming there are five excel files with names copy.xls, cut.xls, forum.xls, commercial.xls and point.xls. If the vaules in their cell "C2" are 2,3,4,5 and 6 respectively; I want a macro program that will automatically copy all these values, that is, 2,3,4,5 and 6 to cells A1, A2, A3, A4, A5 and A6 respectively in a master excel file called Consolidated.xls.

    Any help pls.

  2. #2
    Valued Forum Contributor
    Join Date
    03-22-2013
    Location
    Australia,NSW, Wirrimbi
    MS-Off Ver
    Excel 2013
    Posts
    1,057

    Re: Macro to copy some cells in some excel files in a folder to a master file

    This will show you the basics of looping through all Excel files in a Folder and copy a particular range from each Workbook to a Master Workbook..

    The solution shown in the link below has a few extra things you don't need (like auto filtering and copying only visible range etc).. but you should be able to get the general idea of what to do...

    http://www.excelforum.com/excel-prog...ml#post3439348

+ 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. [SOLVED] How to Copy cell value of all files which inside of folder and append to Master file
    By snsuvarna in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 09-06-2013, 03:38 PM
  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. [SOLVED] Macro to copy file names and data from each file in a folder into master spreadsheet
    By dee1989 in forum Excel Programming / VBA / Macros
    Replies: 11
    Last Post: 07-10-2012, 05:52 AM
  4. Replies: 9
    Last Post: 04-18-2012, 08:50 AM
  5. Replies: 3
    Last Post: 02-22-2012, 11:40 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