lizsunnysideup
New Member
- Joined
- Jun 29, 2019
- Messages
- 36
I am using the following for a macro:
Dim y As Long
For y = 1 To Cells(Rows.Count, “AK”).End(xlUp).Row
If Range(“AK:AM” & y).Value = “DRUG REQUIRES PRIOR AUTHORIZATION” And Range(“A” & y).Value = “” Then
Range(“A” & y).Value = “PA REQD”
End If
Next y
However, I keep getting an error message of method 'range' of object_global failed. I'm not sure how to fix, but I'm trying to flag claims with the text DRUG REQUIRES PRIOR AUTHORIZATION which appears in several different columns.
Dim y As Long
For y = 1 To Cells(Rows.Count, “AK”).End(xlUp).Row
If Range(“AK:AM” & y).Value = “DRUG REQUIRES PRIOR AUTHORIZATION” And Range(“A” & y).Value = “” Then
Range(“A” & y).Value = “PA REQD”
End If
Next y
However, I keep getting an error message of method 'range' of object_global failed. I'm not sure how to fix, but I'm trying to flag claims with the text DRUG REQUIRES PRIOR AUTHORIZATION which appears in several different columns.