+ Reply to Thread
Results 1 to 11 of 11

Copy multiple worksheets data & paste into blank columns in summary worksheet

  1. #1
    Registered User
    Join Date
    03-19-2013
    Location
    NA, NA
    MS-Off Ver
    Excel 2010
    Posts
    5

    Copy multiple worksheets data & paste into blank columns in summary worksheet

    Hi

    I have a workbook with several worksheets in excel 2010. I need to copy D2:D33 from each worksheet (with the exception of the Summary data) into the Summary worksheet. Column A in the summary tab are the data descriptions and row 1 is prefilled.

    For example: Sheet 1 data in D2:D33 needs to paste into Summary column B2:B33, D2:D33 data in sheet 2 needs to paste into Summary column C2:C33, and so on.

    This is what I've come up with so far, but it paste the data vertically in stand of horizontally. I think I may need a worksheet copy and paste loop, not sure :-/. I have been struggling trying to figure this out, please help!!!!

    xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
    Please Login or Register  to view this content.
    xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx

    Thanks for your help!!!!!!!
    Last edited by arlu1201; 03-20-2013 at 03:25 PM.

  2. #2
    Forum Expert
    Join Date
    03-28-2012
    Location
    TBA
    MS-Off Ver
    Office 365
    Posts
    12,454

    Re: Copy multiple worksheets data & paste into blank columns in summary worksheet

    Please use code tags with your code, it is forum's rule to use

    Change this line

    Please Login or Register  to view this content.
    iNTO
    Please Login or Register  to view this content.

  3. #3
    Registered User
    Join Date
    03-19-2013
    Location
    NA, NA
    MS-Off Ver
    Excel 2010
    Posts
    5

    Re: Copy multiple worksheets data & paste into blank columns in summary worksheet

    Thanks AB33,

    I'll use code tags going forward.

    I tried replacing the code I had with the one you provided once before, but for some reason it only copy/paste 1 of the many worksheets data rows D2:D33 instend of all of the worksheets. (I believe its copy/pasting only the worksheet furthest to the right.)

    Any idea on how to solve this??

    Thanks!!!
    Last edited by guest99999; 03-20-2013 at 09:34 AM.

  4. #4
    Forum Expert
    Join Date
    03-28-2012
    Location
    TBA
    MS-Off Ver
    Office 365
    Posts
    12,454

    Re: Copy multiple worksheets data & paste into blank columns in summary worksheet

    Currently your code as it is copies from all sheets, range D2:D33, except the summary. What do you want to change, or add to the code?

  5. #5
    Registered User
    Join Date
    03-19-2013
    Location
    NA, NA
    MS-Off Ver
    Excel 2010
    Posts
    5

    Re: Copy multiple worksheets data & paste into blank columns in summary worksheet

    I would like to added or change anything that will make it work.

    As I mentioned, for some strange reason the code is not pasting all the values for all worksheets, it is only pasting data for 1 of the worksheets.

    If you have a better code in mind, I am definitely willing to change the code to get it to work.

    Any ideas?

  6. #6
    Forum Expert
    Join Date
    03-28-2012
    Location
    TBA
    MS-Off Ver
    Office 365
    Posts
    12,454

    Re: Copy multiple worksheets data & paste into blank columns in summary worksheet

    It is most likely that your code is overwriting the previous data with the next data, so you only end up with the last copied data.
    Do not worry, it is easy to adjust it. All I need from you is to attach a sample, so that I can see the format of your data.
    To download a sample, go in to advance, then attachment.

  7. #7
    Registered User
    Join Date
    03-19-2013
    Location
    NA, NA
    MS-Off Ver
    Excel 2010
    Posts
    5

    Re: Copy multiple worksheets data & paste into blank columns in summary worksheet

    Below is a sample. It only contains 3 other than summary sheets, but usually there are 30+. The summary tab format is how I need the data structured for all 30 or more worksheets I usually have to summarize.

    Thanks
    Attached Files Attached Files

  8. #8
    Forum Expert
    Join Date
    03-28-2012
    Location
    TBA
    MS-Off Ver
    Office 365
    Posts
    12,454

    Re: Copy multiple worksheets data & paste into blank columns in summary worksheet

    Guest,
    Please find attached.
    I have amended your code. I have also added my own code as an option.
    Attached Files Attached Files

  9. #9
    Registered User
    Join Date
    03-19-2013
    Location
    NA, NA
    MS-Off Ver
    Excel 2010
    Posts
    5

    Re: Copy multiple worksheets data & paste into blank columns in summary worksheet

    Thanks!!

    I adjusted the code a little, but it works now!

  10. #10
    Forum Contributor arlu1201's Avatar
    Join Date
    09-09-2011
    Location
    Bangalore, India
    MS-Off Ver
    Excel 2003 & 2007
    Posts
    19,166

    Re: Copy multiple worksheets data & paste into blank columns in summary worksheet

    guest99999,

    Welcome to the forum.

    I have added code tags to your post. As per forum rule 3, you need to use them whenever you put any code in your post. Please add them in future. If you need more information on how to use them, check my signature below this post.
    If I have helped, Don't forget to add to my reputation (click on the star below the post)
    Don't forget to mark threads as "Solved" (Thread Tools->Mark thread as Solved)
    Use code tags when posting your VBA code: [code] Your code here [/code]

  11. #11
    Forum Contributor arlu1201's Avatar
    Join Date
    09-09-2011
    Location
    Bangalore, India
    MS-Off Ver
    Excel 2003 & 2007
    Posts
    19,166

    Re: Copy multiple worksheets data & paste into blank columns in summary worksheet

    Based on your last post in this thread, its apparent that you are satisfied with the solution(s) you've received and have solved your question, but you haven't marked your thread as "SOLVED". I will do it for you this time.

    In future, to mark your thread as Solved, you can do the following -
    Select Thread Tools-> Mark thread as Solved.

    Incase your issue is not solved, you can undo it as follows -
    Select Thread Tools-> Mark thread as Unsolved.

    Also, since you are relatively new to the forum, i would like to inform you that you can thank those who have helped you by clicking the small star icon located in the lower left corner of the post which helped you. This adds to the reputation of the person who has taken the time to help you.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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