Similar concept, using different property to loop.
Code:
Sub Demo()
Dim vRow As Range
Dim i As Long: i = 0
With Worksheets("Sheet1")
For Each vRow In .AutoFilter.Range.SpecialCells(xlCellTypeVisible).Rows
If i = 10 Then
vRow.Select
Exit Sub
End If
i = i + 1
Next
If i < 10 Then
MsgBox "There is less than 10 visible rows in range"
End If
End With
End Sub
Similar concept, using different property to loop.
Code:
Sub Demo()
Dim vRow As Range
Dim i As Long: i = 0
With Worksheets("Sheet1")
For Each vRow In .AutoFilter.Range.SpecialCells(xlCellTypeVisible).Rows
If i = 10 Then
vRow.Select
Exit Sub
End If
i = i + 1
Next
If i < 10 Then
MsgBox "There is less than 10 visible rows in range"
End If
End With
End Sub