vmohan1978
Member
All,
I have the following 5 sheets in a file
WksOutput,WksData,WksBangalore,WksDelhi,WksMumbai.
I want to copy data from WksBangalore,WksDelhi,WksMumbai to WksData sheet continuously.
I am using the following data
Sub Combine()
Dim J As Integer
On Error Resume Next
Sheets(3).Activate
Range("A1").EntireRow.Select
Selection.Copy Destination:=WksData.Range("A1")
For J = 4 To Sheets.Count
Sheets(J).Activate
Range("A1").Select
Selection.CurrentRegion.Select
Selection.Offset(1, 0).Resize(Selection.Rows.Count - 1).Select
Selection.Copy Destination:=WksData.Range("A65536").End(xlUp)(2)
Next
End Sub
I have the following 5 sheets in a file
WksOutput,WksData,WksBangalore,WksDelhi,WksMumbai.
I want to copy data from WksBangalore,WksDelhi,WksMumbai to WksData sheet continuously.
I am using the following data
Sub Combine()
Dim J As Integer
On Error Resume Next
Sheets(3).Activate
Range("A1").EntireRow.Select
Selection.Copy Destination:=WksData.Range("A1")
For J = 4 To Sheets.Count
Sheets(J).Activate
Range("A1").Select
Selection.CurrentRegion.Select
Selection.Offset(1, 0).Resize(Selection.Rows.Count - 1).Select
Selection.Copy Destination:=WksData.Range("A65536").End(xlUp)(2)
Next
End Sub