I am new to VBA and need some help.
I have a worksheet named "Registration" where the data is located that I need to copy and a worksheet named "Player_List" where the data needs to be pasted in the first empty cell. I am getting a Runtime Error 1004 on the code below:
Sub Copy_to_Player_List()
Sheets("Registration").Select
Range("$A$14:$B$50").Select
Application.CutCopyMode = False
Selection.Copy
Sheets("Player_List").Select
Range("A65536").End(xlUp).Offset(1, 0).Select
Selection.PasteSpecial Paste:=xlValues, Operation:=xlNone, SkipBlanks:= _
False, Transpose:=False
End Sub
The Error is coming from: Range("A65536").End(xlUp).Offset(1, 0).Select
What am I doing wrong?
I have a worksheet named "Registration" where the data is located that I need to copy and a worksheet named "Player_List" where the data needs to be pasted in the first empty cell. I am getting a Runtime Error 1004 on the code below:
Sub Copy_to_Player_List()
Sheets("Registration").Select
Range("$A$14:$B$50").Select
Application.CutCopyMode = False
Selection.Copy
Sheets("Player_List").Select
Range("A65536").End(xlUp).Offset(1, 0).Select
Selection.PasteSpecial Paste:=xlValues, Operation:=xlNone, SkipBlanks:= _
False, Transpose:=False
End Sub
The Error is coming from: Range("A65536").End(xlUp).Offset(1, 0).Select
What am I doing wrong?