Complie Error Help
Thanks Tom, as usual
"Tom Ogilvy" wrote in message
...
I don't think you want to loop over 65536 rows.
Sub Tester()
For Each r In ActiveSheet.UsedRange.rows
If r.Entirerow.Hidden = True Then
MsgBox "Row " & r.row & " is hidden."
End If
Next r
End Sub
As stated by others , Search is a worksheetfunction, not a VBA function.
--
Regards,
Tom Ogilvy
"JMay" wrote in message
news:xyZId.34843$jn.14460@lakeread06...
Below Code BOMBS at MsgBox line with: Compile Error Sub or Function not
defined;
With the word Search highlighted --- Why?????
Sub Tester()
For Each r In Rows
If r.Hidden = True Then
MsgBox "Row " & Mid(r.Address, 2, Search(":", r.Address) - 2) & " is
hidden."
End If
Next r
End Sub
TIA
|