I never felt a need to do this but this should do it.
Sub numbervisiblerows()
mc = 2'column number to check 2 is column B
For i = 1 To Cells(Rows.Count, mc).End(xlUp).Row
If Rows(i).Hidden = False Then Cells(i, mc -1) = j
j = j + 1
Next i
End Sub

Signature
Don Guillett
Microsoft MVP Excel
SalesAid Software
dguillett1@austin.rr.com
> May I know how to number unhidden rows only
Nahc - 22 Feb 2008 13:36 GMT
sorry sir, is there a simpler explanation ?
> I never felt a need to do this but this should do it.
>
[quoted text clipped - 6 lines]
> End Sub
> > May I know how to number unhidden rows only