Hi Mr. XL Board members,
I am really becoming a fan of this board and I get to learn a lot......Now am again in need of ur expert opinions....
Purpose of this code: I am trying to combine the data from Sheet 1,2,3 into to sheet namd "AIO". All sheets are in the same workbook. But the code only supports creating a new sheet (AIO) every time i run the code...
I would need the sheet "AIO" only to be updated with the data
OR
Any data i modify (enter/delete) in Sheets 1,2,3 must reflect in sheet "AIO"
CAN this be done???
Sub Combine()
Dim J As Integer
On Error Resume Next
Sheets(1).Select
Worksheets.Add
Sheets(1).Name = "AIO"
Sheets(2).Activate
Range("A1").EntireRow.Select
Selection.Copy Destination:=Sheets(1).Range("A1")
For J = 2 To Sheets.Count
Sheets(J).Activate
Range("A1").Select
Selection.CurrentRegion.Select
Selection.Offset(3, 0).Resize(Selection.Rows.Count - 1).Select
Selection.Copy Destination:=Sheets(1).Range("A65536").End(xlUp)(2)
Next
End Sub
please help!!! and Thanks in adv
I am really becoming a fan of this board and I get to learn a lot......Now am again in need of ur expert opinions....
Purpose of this code: I am trying to combine the data from Sheet 1,2,3 into to sheet namd "AIO". All sheets are in the same workbook. But the code only supports creating a new sheet (AIO) every time i run the code...
I would need the sheet "AIO" only to be updated with the data
OR
Any data i modify (enter/delete) in Sheets 1,2,3 must reflect in sheet "AIO"
CAN this be done???
Sub Combine()
Dim J As Integer
On Error Resume Next
Sheets(1).Select
Worksheets.Add
Sheets(1).Name = "AIO"
Sheets(2).Activate
Range("A1").EntireRow.Select
Selection.Copy Destination:=Sheets(1).Range("A1")
For J = 2 To Sheets.Count
Sheets(J).Activate
Range("A1").Select
Selection.CurrentRegion.Select
Selection.Offset(3, 0).Resize(Selection.Rows.Count - 1).Select
Selection.Copy Destination:=Sheets(1).Range("A65536").End(xlUp)(2)
Next
End Sub
please help!!! and Thanks in adv
Last edited: