Option Explicit
Private Sub SpinButton1_SpinDown()
If ActiveCell.Offset(-ActiveCell.Row + 3, 0).Resize(ActiveCell.Row, 1).SpecialCells(xlCellTypeVisible).Areas.Count > 1 Then Cells(ActiveCell.Offset(-ActiveCell.Row + 3, 0).Resize(ActiveCell.Row, 1).SpecialCells(xlCellTypeVisible).Areas.Item(ActiveCell.Offset(-ActiveCell.Row + 3, 0).Resize(ActiveCell.Row, 1).SpecialCells(xlCellTypeVisible).Areas.Count - 1).Row, ActiveCell.Offset(-ActiveCell.Row + 3, 0).Resize(ActiveCell.Row, 1).Column).Select
End Sub
' -----------------------------------------------------------------------------------'
Private Sub SpinButton1_SpinUp()
If ActiveCell.Resize(Cells(65536, 2).End(xlUp).Row - ActiveCell.Row, 1).SpecialCells(xlCellTypeVisible).Areas.Count > 1 Then Cells(ActiveCell.Resize(Cells(65536, 2).End(xlUp).Row - ActiveCell.Row, 1).SpecialCells(xlCellTypeVisible).Areas.Item(2).Row, ActiveCell.Column).Select
End Sub