Copying Excel data from multiple worksheets into one single sheet

前端 未结 4 1976
囚心锁ツ
囚心锁ツ 2021-01-16 13:26

I have tried searching the internet for various answers to this question but cannot find the right answer. I have an Excel Workbook with worksheets represent each day of the

4条回答
  •  忘掉有多难
    2021-01-16 13:54

    Create a worksheet "Summary" which is to contain all the merged data. Open ThisWorkBook (simply press ALT+F11 in your excel workbook. A new window will open. Your worksheet name will be visible on the left hand side. Keep expanding till you see ThisWorkBook) Double click ThisWorkBook and add the following code in it:

    Sub SummurizeSheets() 
        Dim ws As Worksheet 
    
        Application.Screenupdating = False 
        Sheets("Summary").Activate 
    
        For Each ws In Worksheets 
            If ws.Name <> "Summary" Then 
                ws.Range("F46:O47").Copy 
                ActiveSheet.Paste Range("A65536").End(xlUp).Offset(1, 0) 
            End If 
        Next ws 
    End Sub 
    

提交回复
热议问题