Av8tordude
Well-known Member
- Joined
- Oct 13, 2007
- Messages
- 1,074
- Office Version
- 2019
- Platform
- Windows
I'm using this code to scroll through each row, however if the rows are filtered I would like to scroll through only the visible rows. Can someone assist with a vba code to only scroll through the visible rows. Thanks
VBA Code:
Private Sub spNav_SpinDown()
Dim LRow As Long
LRow = Application.Max(7, Range("A" & Rows.Count).End(xlUp).Row)
If Range("A7") > vbNullString Then Cells(Application.Min(LRow, selection.Row + 1), "A").Select
end sub