Okay, I made some headway. I commented out a line and now I can step through the code with no error messages. It ALMOST works. ahahhaha
What I mean is it will copy Sheet1/Row1 to Sheet2/Column E Row 10. But it won't copy any other rows over. Row 10 on Sheet 2 is where the last of the data is located, so it's started at the bottom of the data. This isn't a problem though as I really don't care if it starts at the top or bottom. I copied the code below exactly as it sits now.
Sub Test()
Dim sh1 As Long
Dim sh2 As Long
Sheets("Sheet2").Select
sh1 = Sheets("Sheet1").Cells(Rows.Count, "D").End(xlUp).Row
sh2 = Sheets("Sheet2").Cells(Rows.Count, "A").End(xlUp).Row
For i = sh2 To 2 Step -1
For j = sh1 To 2 Step -1
If Sheets("Sheet1").Range("D" & j).Value = Sheets("Sheet2").Range("A" & i).Value Then
Sheets("Sheet1").Activate
Sheets("Sheet1").Range(Cells(j, "A"), Cells(j, Sheets("Sheet1").UsedRange.Columns.Count)).Copy Destination:=Sheets("Sheet2").Range("E" & sh2)
'sh2 = Sheets("Sheet2").Cells(Row.Count, "A").End(xlUp).Row
End If
Next j
Next i
End Sub
Bookmarks