Hey Guys, I'm having a hard time with a simple problem. Here is my code:
The For Each Cell in rptRange throws an "Object Required" Error 424, I didn't declare Cell as a type anywhere, what am I missing?
Thanks
Code:
Dim rptRange As Variant
rptRange = Range([B1], [B21])
For Each Cell In rptRange
If Cell.Value = 1 Then
' Do something
End If
Next
The For Each Cell in rptRange throws an "Object Required" Error 424, I didn't declare Cell as a type anywhere, what am I missing?
Thanks