Wim
New Member
I am trying to copy unique ID numbers from a list on a sheet to a column in another sheet.
I got the following code from the net but it give me a run time error and I am not sure why? (Run-time error 9 Subscript out of range)
Any assistance will be greatly appreciated!
I got the following code from the net but it give me a run time error and I am not sure why? (Run-time error 9 Subscript out of range)
Code:
Sub UniqueListAcrossSheets()
Dim ULR As Long
Dim rSrc As Range
ULR = Worksheets("Sheet5").Cells(Rows.Count, "C").End(xlUp).Row
Set rSrc = Worksheets("Sheet5").Range("C2:C" & ULR)
rSrc.Copy Destination:=Worksheets("Sheet4").Range("A4")
End SuB
Any assistance will be greatly appreciated!