Results 1 to 11 of 11

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

Threaded View

  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
    ' Summarize Macro
        Dim ws As Worksheet
         
        Application.ScreenUpdating = False
        Sheets("Summary").Activate
         
        For Each ws In Worksheets
            If ws.Name <> "Summary" Then
                ws.Range("D2:D33").Copy
                Worksheets("Summary").Cells(Rows.Count, 1).End(xlUp).Offset(1, 0).PasteSpecial (xlPasteValues)
            End If
        Next ws
    End Sub
    xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx

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

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