Hi,
I am hiding some rows of a range on click of some event.
Now , after this operation I need to find the first unhidden row in the range.
How can that be done?
Thanks
Hi,
I am hiding some rows of a range on click of some event.
Now , after this operation I need to find the first unhidden row in the range.
How can that be done?
Thanks
Try this:
![]()
Sub test() MsgBox FirstVisRow(Range("A5:B10")) ' hide some rows as you wish End Sub Function FirstVisRow(r As Range) As Long Dim rFind As Range On Error Resume Next Set rFind = r.Columns(1).SpecialCells(xlCellTypeVisible) If Not rFind Is Nothing Then FirstVisRow = rFind.Row End Function
Entia non sunt multiplicanda sine necessitate
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks