ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Move to displayed row of filtered list (https://www.excelbanter.com/excel-programming/272965-move-displayed-row-filtered-list.html)

Michael Singmin

Move to displayed row of filtered list
 
Hello Group,

If a list is filtered, can one move to the first displayed row after
the header row ?

Thanks,

Michael Singmin

John Wilson

Move to displayed row of filtered list
 
Michael,

From a prior post by Tom Ogilvy......

John

<snip
Sub GetFirst()
Dim rng As Range
Set rng = ActiveSheet.AutoFilter.Range
Set rng = rng.Offset(1, 0).Resize(, 1) _
.SpecialCells(xlVisible)
Set rng = Intersect(rng(1, 1).EntireRow, _
ActiveSheet.AutoFilter.Range)
rng.Select
End Sub
<snip

Michael Singmin wrote:

Hello Group,

If a list is filtered, can one move to the first displayed row after
the header row ?

Thanks,

Michael Singmin




All times are GMT +1. The time now is 04:15 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
ExcelBanter.com