Select first visible cell directly beneath the header of a filtered column

前端 未结 4 1037
感情败类
感情败类 2020-12-06 19:34

I am trying to select the first visible cell directly beneath the header of a filtered column. The code I am getting is as below, but I have to problems with this code. Fi

4条回答
  •  甜味超标
    2020-12-06 20:13

    Sub FirstVisibleCell()
        With Worksheets("You Sheet Name").AutoFilter.Range
           Range("A" & .Offset(1, 0).SpecialCells(xlCellTypeVisible)(1).Row).Select
        End With
    End Sub
    

提交回复
热议问题