I have a workbook with 30+ worksheets, one for each reporting center. I am trying to create code that will copy the full year numbers (column CD) into one summary worksheet. Each reporting center would be a column in the summary worksheet
Below is the current code. It runs and goes to the summary sheet but does not paste anything. If I hit enter, it paste random colors that I do not think are anywhere in my workbook,
Sub SummurizeSheets()
Dim ws As Worksheet
Application.ScreenUpdating = False
Sheets("Summary").Activate
For Each ws In Worksheets
If ws.Name <> "Summary" Then
ws.Range("cd1").EntireColumn.Copy
ActiveSheet.Range("b1").End(xlUp).Offset(0, 1).PasteSpecial xlPasteValues
End If
Next ws
End Sub
Below is the current code. It runs and goes to the summary sheet but does not paste anything. If I hit enter, it paste random colors that I do not think are anywhere in my workbook,
Sub SummurizeSheets()
Dim ws As Worksheet
Application.ScreenUpdating = False
Sheets("Summary").Activate
For Each ws In Worksheets
If ws.Name <> "Summary" Then
ws.Range("cd1").EntireColumn.Copy
ActiveSheet.Range("b1").End(xlUp).Offset(0, 1).PasteSpecial xlPasteValues
End If
Next ws
End Sub
Last edited: