+ Reply to Thread
Results 1 to 2 of 2

Macro to copy one column from several workbooks into a single workbook

  1. #1
    Registered User
    Join Date
    10-23-2015
    Location
    Washington
    MS-Off Ver
    Excel 2011
    Posts
    3

    Macro to copy one column from several workbooks into a single workbook

    Hello,

    Apologies if this has been posted before, but I haven't found a solution yet.

    I'm hoping to copy the same column from 115 different workbooks into a single workbook, with each column copied into a separate column in the new workbook (the end result would be a workbook with 115 columns).

    In addition, I need to do this for columns in three different sheets of each of the 115 workbooks. Specifically, I need to copy column Z of sheet 1, column AL of sheet 2, and column AD of sheet 3.

    I am new to using macros so I have no idea how to do this- any help would be very appreciated.

    Thanks!

  2. #2
    Forum Expert Alf's Avatar
    Join Date
    03-13-2004
    Location
    Gothenburg/Mullsjoe, Sweden
    MS-Off Ver
    Excel 2019 and not sure I like it
    Posts
    4,758

    Re: Macro to copy one column from several workbooks into a single workbook

    So what you need is a macro that loops through all the 115 files in a specific folder (I assume all these files are in the same folder)

    the end result would be a workbook with 115 columns
    You say that each of these files contains 3 worksheets and you wish to copy column Z, AL and AD so the values from the first file and sheet1 will be pasted to column A in target file, the next set of values from first file and sheet2 should also be pasted to column A below the values from sheet1 and finally the last set of data from sheet3 will also be pasted to column A in target file. Then the processed file is closed and the next file is opened and the process is repeated this time in the B column ........

    Perhaps the file name should be added on top of each column for easy identification in case some value must be "investigated"?

    Looking at your forum profile I see it says "Excel 2011". As far as I know this is the Mac version of Excel so a code writen for Excel 2010 may not work in a Mac environment.

    I would recommend that you upload one of the 115 files (after checking that there is no sensitive in it) in order to make it easier to write a macro.

    Alf

+ 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. Macro to copy column from one workbook and paste in another workbook
    By abhinaymarreddy in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 06-30-2014, 06:07 PM
  2. [SOLVED] Copy Specific Cells Across all worksheets in a Workbook and Paste Into single New Workbook
    By thunt13 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 08-14-2013, 10:43 AM
  3. [SOLVED] Copy Values From Each Workbook in Folder to a Single Sheet in New Workbook +Workbook names
    By Arsham24 in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 09-21-2012, 07:42 PM
  4. [SOLVED] Copy All Sheets From Each Workbook in Folder to a Single Sheet in New Workbook
    By DHartwig35805 in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 08-21-2012, 03:53 PM
  5. To copy data from two different excel workbooks in a single workbook using macro
    By neha_gunaji in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 08-11-2012, 03:28 AM
  6. macro to copy data from multiple workbooks in a single workbook
    By blyzzard in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 10-03-2011, 05:34 AM
  7. copy a single column from mutiple workbooks into a single workbook
    By Savan87 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 02-01-2011, 11:27 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