I have code as follows:
Dim rRepCell As Variant
Dim rRepRow As Integer
Application.Goto Reference:="Reps" ' an existing range
ActiveCell.Offset(1, 1).Range("A1").Select
Selection.End(xlDown).Select
rRepCell = ActiveCell.Address(0, 0)
rRepRow = Selection.Row(rRepCell)
Getting an error on the line:
rRepRow = Selection.Row(rRepCell)
Runtime error 451. Property let procedure not defined and property get procedure did not return an object.
What I want is the row number at the bottom of the range.
What is wrong?
Thanks for the assist.