+ Reply to Thread
Results 1 to 10 of 10

Copy range from multiple worksheets to another worksheet without overwriting

  1. #1
    Registered User
    Join Date
    12-21-2012
    Location
    Eden Prairie, MN
    MS-Off Ver
    Excel 2010
    Posts
    39

    Copy range from multiple worksheets to another worksheet without overwriting

    My apologies if this has been answered already in another post, but I've been searching through the posts for over 2 hrs and am unable to locate anything that works.

    I need a code that will copy any cells with data in range I3:I41 from sheet2 and paste it in sheet1 starting at cell B3. Then copy any cells with data in range I3:I41 from sheet3 and paste it in sheet1 starting at the next empty cell.

    Thank you

  2. #2
    Forum Moderator Leith Ross's Avatar
    Join Date
    01-15-2005
    Location
    San Francisco, Ca
    MS-Off Ver
    2000, 2003, & 2010
    Posts
    23,258

    Re: Copy range from multiple worksheets to another worksheet without overwriting

    Hello MissaLissa,

    It was not clear to me if you were using the "friendly" tab names for the worksheets. This macro uses the worksheet code names rather than "friendly" tab names, which means you can change the "friendly" name without changing the macro code.
    Please Login or Register  to view this content.
    Sincerely,
    Leith Ross

    Remember To Do the Following....

    1. Use code tags. Place [CODE] before the first line of code and [/CODE] after the last line of code.
    2. Thank those who have helped you by clicking the Star below the post.
    3. Please mark your post [SOLVED] if it has been answered satisfactorily.


    Old Scottish Proverb...
    Luathaid gu deanamh maille! (Rushing causes delays!)

  3. #3
    Registered User
    Join Date
    12-21-2012
    Location
    Eden Prairie, MN
    MS-Off Ver
    Excel 2010
    Posts
    39

    Re: Copy range from multiple worksheets to another worksheet without overwriting

    Thanks for quick response Leith. I guess I should have been a little more specific...

    I have the "Master Sheet" and then I have a sheet for each day of the week (Monday, Tuesday, etc). I need to copy data from worksheet called Monday and paste in cell B3 on the master sheet, then copy data from Tuesday and paste in the next empty cell of the Master sheet. And so on and so forth. Each week day spreadsheet will have a different amount of cells to copy. See Attached.

    Thank you for your help
    Attached Files Attached Files
    Last edited by MissaLissa; 04-25-2014 at 03:35 PM. Reason: Attachement

  4. #4
    Forum Moderator Leith Ross's Avatar
    Join Date
    01-15-2005
    Location
    San Francisco, Ca
    MS-Off Ver
    2000, 2003, & 2010
    Posts
    23,258

    Re: Copy range from multiple worksheets to another worksheet without overwriting

    Hello MissaLissa,

    Nothing attached to your last post. It happens from time to time. Try it again.

  5. #5
    Registered User
    Join Date
    12-21-2012
    Location
    Eden Prairie, MN
    MS-Off Ver
    Excel 2010
    Posts
    39

    Re: Copy range from multiple worksheets to another worksheet without overwriting

    It's there now... It took me a minute to remember how to get the attachement option... forgot to go advanced.

  6. #6
    Forum Moderator Leith Ross's Avatar
    Join Date
    01-15-2005
    Location
    San Francisco, Ca
    MS-Off Ver
    2000, 2003, & 2010
    Posts
    23,258

    Re: Copy range from multiple worksheets to another worksheet without overwriting

    Hello MissaLissa,

    Thanks for the workbook. That makes everything clear. I will correct the macro based on this workbook's layout.

  7. #7
    Forum Moderator Leith Ross's Avatar
    Join Date
    01-15-2005
    Location
    San Francisco, Ca
    MS-Off Ver
    2000, 2003, & 2010
    Posts
    23,258

    Re: Copy range from multiple worksheets to another worksheet without overwriting

    Hello MissaLissa,

    The macro has been added to the workbook and a button added to the "Main" sheet to run the macro.
    Please Login or Register  to view this content.
    Attached Files Attached Files

  8. #8
    Registered User
    Join Date
    12-21-2012
    Location
    Eden Prairie, MN
    MS-Off Ver
    Excel 2010
    Posts
    39

    Re: Copy range from multiple worksheets to another worksheet without overwriting

    Oh man, it's so close I can smell and taste it.

    It's pasting a blank cell if there is no data in any of the weekday worksheets. Is there a way to eliminate that? (See Attached)
    Attached Files Attached Files

  9. #9
    Forum Moderator Leith Ross's Avatar
    Join Date
    01-15-2005
    Location
    San Francisco, Ca
    MS-Off Ver
    2000, 2003, & 2010
    Posts
    23,258

    Re: Copy range from multiple worksheets to another worksheet without overwriting

    Hello

    Here is the updated macro. It has been added to the attached workbook.

    Please Login or Register  to view this content.
    Attached Files Attached Files

  10. #10
    Registered User
    Join Date
    12-21-2012
    Location
    Eden Prairie, MN
    MS-Off Ver
    Excel 2010
    Posts
    39

    Re: Copy range from multiple worksheets to another worksheet without overwriting

    Good morning Leith - Hope you had a wonderful weekend and thank you for helping me out on this.

    The code works great. I just have a couple of questions...

    1. How do I use this code to have Thursday & Friday copy and paste to another list? (See Attached)

    2. If I wanted to copy more than one column wouldn't I just simply add it to the range?

    Please Login or Register  to view this content.
    Attached Files Attached Files
    Last edited by MissaLissa; 04-28-2014 at 09:17 AM. Reason: added attachement

+ 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] VB; how do I stop all the results overwriting when i copy data range to a table?
    By KT16 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 10-31-2013, 07:18 AM
  2. Copy multiple lists from multiple worksheets into single worksheet
    By gowtham_pec in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 05-01-2013, 04:44 AM
  3. 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
  4. Replies: 3
    Last Post: 09-07-2012, 02:50 PM
  5. copy selected range from multiple workbooks into multiple worksheets in one workbook
    By novak100 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 02-13-2012, 05:52 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