+ Reply to Thread
Results 1 to 6 of 6

Copy data rows from multiple worksheets, paste into one worksheet

  1. #1
    Forum Contributor
    Join Date
    11-23-2015
    Location
    Yada, Wales
    MS-Off Ver
    Office 2013
    Posts
    176

    Copy data rows from multiple worksheets, paste into one worksheet

    I have multiple worksheets with different amounts of rows. The columns are the same though. No headers.

    Would like to, for each worksheet, select all rows with data and put them into a Master worksheet placed before all worksheets. Beginning with the first worksheet, then add rows from the second worksheet, then from the third and so on.

    When the code is run twice, it should delete all data in the Master worksheet before copying pasting again.

  2. #2
    Forum Expert
    Join Date
    06-12-2012
    Location
    Ridgefield Park, New Jersey
    MS-Off Ver
    Excel 2003,2007,2010
    Posts
    10,241

    Re: Copy data rows from multiple worksheets, paste into one worksheet

    Maybe:

    Please Login or Register  to view this content.

  3. #3
    Forum Contributor
    Join Date
    11-23-2015
    Location
    Yada, Wales
    MS-Off Ver
    Office 2013
    Posts
    176

    Re: Copy data rows from multiple worksheets, paste into one worksheet

    Quote Originally Posted by JOHN H. DAVIS View Post
    Maybe:

    Please Login or Register  to view this content.

    I get an outside interval error at
    Sheets("Master").UsedRange.Offset(1).ClearContents

    Is it possible to let the code create a worksheet first named "Master" and place it at the beginning?

  4. #4
    Forum Expert
    Join Date
    06-12-2012
    Location
    Ridgefield Park, New Jersey
    MS-Off Ver
    Excel 2003,2007,2010
    Posts
    10,241

    Re: Copy data rows from multiple worksheets, paste into one worksheet

    If afraid I don't know what an outside interval error is? Try.

    Please Login or Register  to view this content.

  5. #5
    Forum Contributor
    Join Date
    11-23-2015
    Location
    Yada, Wales
    MS-Off Ver
    Office 2013
    Posts
    176

    Re: Copy data rows from multiple worksheets, paste into one worksheet

    Hello John

    Thank you for helping me out with this, it's been greatly appreciated!

  6. #6
    Forum Expert
    Join Date
    06-12-2012
    Location
    Ridgefield Park, New Jersey
    MS-Off Ver
    Excel 2003,2007,2010
    Posts
    10,241

    Re: Copy data rows from multiple worksheets, paste into one worksheet

    You're welcome. Glad to help out and thanks for the feedback and the reps.

+ 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/Paste Columns from Multiple Worksheets based on Headers into new Worksheet
    By casper3043 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 10-01-2015, 03:06 PM
  2. [SOLVED] (Excel VBA) Copy and Paste from one worksheet to multiple worksheets by names
    By road_warrior in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 01-30-2015, 08:40 PM
  3. [SOLVED] Copy and Paste rows to multiple worksheets based on a cell value.
    By gaidon in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 07-22-2013, 12:43 PM
  4. [SOLVED] Copy multiple worksheets data & paste into blank columns in summary worksheet
    By guest99999 in forum Excel Programming / VBA / Macros
    Replies: 10
    Last Post: 03-21-2013, 09:56 AM
  5. Copy/Paste Range of Data from Multiple Workbooks/Worksheets to Master Workbook/Worksheets
    By NumberCruncher311 in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 02-19-2013, 08:21 PM
  6. Copy data from multiple worksheets & paste into one worksheet.
    By Rodders in forum Excel Programming / VBA / Macros
    Replies: 14
    Last Post: 02-10-2012, 11:54 AM
  7. [SOLVED] copy nonblank rows from many worksheets and paste them onto one worksheet
    By starman in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 06-21-2006, 07:21 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