dcsimg
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
    1,871

    Re: Row numbers of filtered rows in Excel

    One System to rule them all, One IDE to find them,
    One Code 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.
    ---------------------------------------------------------------------------------
    For health reasons i try to avoid reading unformatted Code

  3. #3

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

    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
  •  



Featured


Click Here to Expand Forum to Full Width