Results 1 to 3 of 3

Thread: [RESOLVED] Row numbers of filtered rows in Excel

  1. #1

  2. #2
    PowerPoster Zvoni's Avatar
    Join Date
    Sep 2012
    Location
    To the moon and then left
    Posts
    4,415

    Re: Row numbers of filtered rows in Excel

    Last edited by Zvoni; Tomorrow at 31:69 PM.
    ----------------------------------------------------------------------------------------

    One System to rule them all, One Code to find them,
    One IDE to bring them all, and to the Framework bind them,
    in the Land of Redmond, where the Windows lie
    ---------------------------------------------------------------------------------
    People call me crazy because i'm jumping out of perfectly fine airplanes.
    ---------------------------------------------------------------------------------
    Code is like a joke: If you have to explain it, it's bad

  3. #3

    Thread Starter
    Former Admin/Moderator MartinLiss's Avatar
    Join Date
    Sep 1999
    Location
    San Jose, CA
    Posts
    33,427

    Re: Row numbers of filtered rows in Excel

    Thanks but that doesn't work for me. This does,
    Code:
    With Sheets("MySheet")
        For lngRow = 4 To .Range("A1048576").End(xlUp).Row
            If Not IsEmpty(.Cells(lngRow, "A")) Then
                If .Cells(lngRow, "A").EntireRow.Hidden = False Then
                    MsgBox lngRow
                End If
            End If
        Next
    End With

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width