This code is giving me the error of Object Variable or With Block Variable not set. Why is this?
Thank you in advance.
Thank you in advance.
Code:
Sub SetRowCnt()
Dim r As Range
r = 1
Do
r = r + 1
Loop Until ActiveWorkbook.Sheets("Specific Records").Cells(r, 1).Value = "Use this Record"
End Sub