+ Reply to Thread
Results 1 to 2 of 2

Help: Open all xlsx files in dir, copy data from cells and paste in 1 master xlsm

  1. #1
    Registered User
    Join Date
    01-25-2011
    Location
    Vancouver
    MS-Off Ver
    Excel 2007
    Posts
    7

    Question Help: Open all xlsx files in dir, copy data from cells and paste in 1 master xlsm

    So this may be a little complex and I am probably in WAY over my head. Here is what I am looking to do.

    Lets say I have an archive of spreadsheets (xlsx format) saved in a directory (c:\test\). These spreadsheets have percentage rates in specific cells (eg: Sheet1, B2). This data is uniform across all archived files and wont change.

    What I want to do is write a macro in a separate file that will open this "archive" directory, copy the percentage data that I define (eg: Sheet1, B2, C2, D2) and paste this data in the next empty row in the master document. This will allow me to quickly see and generate a stability report based on this information that I am pulling from these sources. I can then quickly see in columns if something is improving or getting worse.

    I would like to note that I can piece together code pretty easily however when it comes to writing something from the ground up I am completely lost. So any and all help is greatly appreciated.

    Thanks in advance guys / girls! This forum is a life saver!

  2. #2
    Forum Expert royUK's Avatar
    Join Date
    11-18-2003
    Location
    Derbyshire,UK
    MS-Off Ver
    Xp; 2007; 2010
    Posts
    26,200

    Re: Help: Open all xlsx files in dir, copy data from cells and paste in 1 master xlsm

    See my code here. It will need some changing e;g the file extension
    Hope that helps.

    RoyUK
    --------
    For Excel Tips & Solutions, free examples and tutorials why not check out my web site

    Free DataBaseForm example

+ 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