aamirsq
Member
Hi,
I searched the net and this forum but found not solution. I want the below code to look in each Jan13, Feb13 & Mar13 and put all data in one column under sheet1 from C17. But this code this only working for the last sheet (i.e Mar13)??
Sub Copy_Sheets()
Dim ws As Worksheet
Application.ScreenUpdating = False
For Each ws In Sheets(Array("Jan13", "Feb13", "Mar13"))
With ws
.Range("B3:B60").Copy
Worksheets("Sheet2").Range("C" & Cells(Rows.Count, 1).End(xlUp).Row + 1).PasteSpecial (xlPasteValues)
End With
Next ws
Application.CutCopyMode = False
Application.ScreenUpdating = True
End Sub
I searched the net and this forum but found not solution. I want the below code to look in each Jan13, Feb13 & Mar13 and put all data in one column under sheet1 from C17. But this code this only working for the last sheet (i.e Mar13)??
Sub Copy_Sheets()
Dim ws As Worksheet
Application.ScreenUpdating = False
For Each ws In Sheets(Array("Jan13", "Feb13", "Mar13"))
With ws
.Range("B3:B60").Copy
Worksheets("Sheet2").Range("C" & Cells(Rows.Count, 1).End(xlUp).Row + 1).PasteSpecial (xlPasteValues)
End With
Next ws
Application.CutCopyMode = False
Application.ScreenUpdating = True
End Sub