Can someone help me paste my information into a table.
I'm copying information from one spreadsheet and adding it to another.
I am adding a new line to the bottom of the table and want the information to be copied there, but I keep getting an error.
Here is the code I have so far
If (ActiveCell = "John Smith") Or (ActiveCell = "James Jones") Then
Range(Cells(AC, 1), Cells(AC, 3)).Copy
Workbooks("Quality Tracker").Activate
Sheets("Eric's Team").Select
If (ActiveCell = "") Then
ActiveCell.Select
Else: Cells(1, 1).Select
Selection.End(xlDown).Select
Last = ActiveCell.Row
Rows(Last).Select
Selection.ListObject.ListRows.Add
End If
Selection.PasteSpecial Paste:=xlPasteAll, Operation:=xlNone, SkipBlanks:= _
False, Transpose:=False
End If
Next xReps
I'm copying information from one spreadsheet and adding it to another.
I am adding a new line to the bottom of the table and want the information to be copied there, but I keep getting an error.
Here is the code I have so far
If (ActiveCell = "John Smith") Or (ActiveCell = "James Jones") Then
Range(Cells(AC, 1), Cells(AC, 3)).Copy
Workbooks("Quality Tracker").Activate
Sheets("Eric's Team").Select
If (ActiveCell = "") Then
ActiveCell.Select
Else: Cells(1, 1).Select
Selection.End(xlDown).Select
Last = ActiveCell.Row
Rows(Last).Select
Selection.ListObject.ListRows.Add
End If
Selection.PasteSpecial Paste:=xlPasteAll, Operation:=xlNone, SkipBlanks:= _
False, Transpose:=False
End If
Next xReps