View Single Post
  #3   Report Post  
Posted to microsoft.public.excel.programming
Bob Phillips[_6_] Bob Phillips[_6_] is offline
external usenet poster
 
Posts: 11,272
Default Hide Second Row - Relative (row number changes)

Here's one way

Dim i As Long
Dim fVisible As Boolean

For i = 1 To Rows.Count
If Not Rows(i).Hidden Then
If fVisible Then
Rows(i).Hidden = True
Exit For
Else
fVisible = True
End If
End If
Next i


--

HTH

RP
(remove nothere from the email address if mailing direct)


"JEFF" wrote in message
...
Hi All,

Should be easy -- I simply want to hide the second row, but that row

number
may be two now, three later, and four after that.... How do I get it to

not
care about the row number, yet hide the second visible row?

Thanks!