jamescooper
Well-known Member
- Joined
- Sep 8, 2014
- Messages
- 840
Hello I have the following code which copies from one sheet and pastes from Row 8 in the next. Each time I run the macro it copies over, I would like to change it to append the data.
Any thoughts, thanks.
Any thoughts, thanks.
Code:
Sub Add_to ()
Application.ScreenUpdating = False
Dim i As Long
Dim Lastrow As Long
Dim Lastrowa As Long
Sheets("Comparison").Activate
Lastrow = Cells(Rows.Count, "B").End(xlUp).Row
Lastrowa = 8
For i = 1 To Lastrow
If Sheets("Comparison").Cells(i, "L").Value = "True" Then
Sheets("Comparison").Range(Cells(i, "B"), Cells(i, "I")).Copy
Sheets("My List").Range("B" & Lastrowa).PasteSpecial xlPasteValues
Lastrowa = Lastrowa + 1
End If
Next
Application.CutCopyMode = False
Application.ScreenUpdating = True
End Sub
Last edited: