Capt.Ragnar
Board Regular
- Joined
- Jun 6, 2012
- Messages
- 138
I have a workbook with 219 worksheets. The data I need from each resides in the same range (A53:O57).
I cannot figure out what is wrong with the following code...
<CODE>
Sub SummurizeSheets()
Dim ws As Worksheet
Application.ScreenUpdating = False
Sheets("Summary").Activate
For Each ws In Worksheets
If ws.Name <> "Summary" Then
ws.Range("a53:O57").Copy
Worksheets("Summary").Cells(Rows.Count, 1).End(xlUp).Offset(1, 0).PasteSpecial (xlPasteValues)
End If
Next ws
End Sub
<CODE>
<CODE>
When I run the macro I only get the selection from the last worksheet none from the rest. Me thinks it is pasting over the same area in the "Summary" worksheet, but I cannot tell.
</CODE></CODE></CODE>
I cannot figure out what is wrong with the following code...
<CODE>
Sub SummurizeSheets()
Dim ws As Worksheet
Application.ScreenUpdating = False
Sheets("Summary").Activate
For Each ws In Worksheets
If ws.Name <> "Summary" Then
ws.Range("a53:O57").Copy
Worksheets("Summary").Cells(Rows.Count, 1).End(xlUp).Offset(1, 0).PasteSpecial (xlPasteValues)
End If
Next ws
End Sub
<CODE>
<CODE>
When I run the macro I only get the selection from the last worksheet none from the rest. Me thinks it is pasting over the same area in the "Summary" worksheet, but I cannot tell.
</CODE></CODE></CODE>