+ Reply to Thread
Results 1 to 7 of 7

copy data from multiple workbook to a master workbook

  1. #1
    Forum Contributor
    Join Date
    10-30-2019
    Location
    Agra
    MS-Off Ver
    Office 2010
    Posts
    241

    copy data from multiple workbook to a master workbook

    Hi, we have approx 50 to 200 csv files in the following folder

    path is
    D:\New folder (4)

    now we want to copy data (data from Column A to Column N) from all the work book to a master workbook

    in all workbook there is only one sheet and sheet name is same to file name.

    Example
    Copy Data from one file to master file, Data copies and rows occupied A1 to N500
    Now again we are copying data and this time data will be paste on A501

    we have not created any master file yet.

  2. #2
    Forum Expert
    Join Date
    10-06-2008
    Location
    Canada
    MS-Off Ver
    2007 / 2013
    Posts
    5,519

    Re: copy data from multiple workbook to a master workbook

    Need a sheet named "Master" in the Master Workbook
    Please Login or Register  to view this content.
    Last edited by jolivanes; 12-27-2020 at 01:58 PM.

  3. #3
    Forum Contributor
    Join Date
    10-30-2019
    Location
    Agra
    MS-Off Ver
    Office 2010
    Posts
    241

    Re: copy data from multiple workbook to a master workbook

    Thanks jolivanes

    we have run the code and found some error


    Run-time error '9':

    Subscript out of range


    when we click on it, its goes to following point

    wbk.Sheets(1).Range("A1:N" & wbk.Sheets(1).Cells(Rows.Count, 1).End(xlUp).Row).Copy wb1.Sheets("Master").Cells(Rows.Count, 1).End(xlUp).Offset(1)

    note: maybe this is the reason for this
    in all workbook there is only one sheet and sheet name is same to file name and all file name are diff.

    pls check and update
    Last edited by Ajay45822; 12-27-2020 at 02:46 PM.

  4. #4
    Forum Expert
    Join Date
    10-06-2008
    Location
    Canada
    MS-Off Ver
    2007 / 2013
    Posts
    5,519

    Re: copy data from multiple workbook to a master workbook

    Do you have a sheet named "Master" in your Master Workbook?

  5. #5
    Forum Expert
    Join Date
    10-06-2008
    Location
    Canada
    MS-Off Ver
    2007 / 2013
    Posts
    5,519

    Re: copy data from multiple workbook to a master workbook

    BTW, if you change this
    Please Login or Register  to view this content.
    to this
    Please Login or Register  to view this content.
    It still works

  6. #6
    Forum Contributor
    Join Date
    10-30-2019
    Location
    Agra
    MS-Off Ver
    Office 2010
    Posts
    241

    Re: copy data from multiple workbook to a master workbook

    Thanks jolivanes,

    you are right, we have not created any sheet with the name of Master, now we have created and it worked

    great

    thanks bhai

  7. #7
    Forum Expert
    Join Date
    10-06-2008
    Location
    Canada
    MS-Off Ver
    2007 / 2013
    Posts
    5,519

    Re: copy data from multiple workbook to a master workbook

    Thank you for letting us know. Appreciate it and good luck.

+ 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] Copy Data from multiple workbooks to master workbook
    By nancyching1711 in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 04-24-2018, 01:59 PM
  2. Copy the Data from Multiple workbook to Master Workbook as Conslidated
    By venugosr in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 03-19-2017, 01:32 AM
  3. Replies: 12
    Last Post: 07-29-2014, 01:06 PM
  4. Copy data from multiple workbooks into one master workbook
    By hellohello1 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 01-24-2014, 04:28 AM
  5. Copy data from multiple workbooks to one master workbook
    By kevinvanberkel in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 01-15-2014, 12:26 PM
  6. [SOLVED] copy data from multiple worksheets into master workbook
    By geordz in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 05-10-2012, 07:03 AM
  7. Replies: 24
    Last Post: 02-17-2012, 11:30 AM

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