coexcelnewbie
New Member
- Joined
- Aug 1, 2017
- Messages
- 3
Sub Rectangle1_Click()
Dim lr As Long
Here is my code. However, it only copies the columns from the 1st sheet. How can I add the data from the 2nd sheet below the copied data from the 1st sheet into the summary (RAID)?
Workbooks("Source").Activate
lr = Cells(Rows.Count, 3).End(xlUp).Row
Range("B3:B" & lr).Copy Workbooks("Report Destination").Sheets("RAID").Range("B3")
Range("E3:E" & lr).Copy Workbooks("Report Destination").Sheets("RAID").Range("C3")
Range("T3:T" & lr).Copy Workbooks("Report Destination").Sheets("RAID").Range("D3")
Range("H3:I3" & lr).Copy Workbooks("Report Destination").Sheets("RAID").Range("E3")
Range("AC3:AC" & lr).Copy Workbooks("Report Destination").Sheets("RAID").Range("G3")
End Sub
Dim lr As Long
Here is my code. However, it only copies the columns from the 1st sheet. How can I add the data from the 2nd sheet below the copied data from the 1st sheet into the summary (RAID)?
Workbooks("Source").Activate
lr = Cells(Rows.Count, 3).End(xlUp).Row
Range("B3:B" & lr).Copy Workbooks("Report Destination").Sheets("RAID").Range("B3")
Range("E3:E" & lr).Copy Workbooks("Report Destination").Sheets("RAID").Range("C3")
Range("T3:T" & lr).Copy Workbooks("Report Destination").Sheets("RAID").Range("D3")
Range("H3:I3" & lr).Copy Workbooks("Report Destination").Sheets("RAID").Range("E3")
Range("AC3:AC" & lr).Copy Workbooks("Report Destination").Sheets("RAID").Range("G3")
End Sub