How to get the range of the visible rows after applying an advanced filter in Excel (VBA)

前端 未结 3 1722
死守一世寂寞
死守一世寂寞 2020-12-01 16:20

Here is the code that applies an advanced filter to the column A on the Sheet1 worksheet (List range) by using the range of values on the Sheet2 (criteria range):

         


        
3条回答
  •  挽巷
    挽巷 (楼主)
    2020-12-01 17:15

    ActiveSheet.Range("A1:A100").Rows.SpecialCells(xlCellTypeVisible)
    

    This yields a Range object.

提交回复
热议问题