Hi,
Why am I getting a run-time error saying, "Object variable or With block variable not set"? The error occurs after the first loop.
Here is my code:
Thank you.
Why am I getting a run-time error saying, "Object variable or With block variable not set"? The error occurs after the first loop.
Here is my code:
Code:
Dim cell As RangeDim rw As Long
For Each cell In Application.Selection
cell = cell.Value
rw = Range("G:G").Find(cell.Value, , xlValues, xlWhole).Row
Debug.Print rw
Next
Thank you.