Selecting Next Row in Filtered Range
Upcoming Power Excel Seminars
Thanks Thanks:  0
Likes Likes:  0
Results 1 to 4 of 4

Thread: Selecting Next Row in Filtered Range

  1. #1
    Guest

    Default

     
    I am trying to select the next visible row in a filtered range - using "activecell.offset(1,0).select" moves to the next numerical row, rather than the next visible row - any ideas?

  2. #2

    Join Date
    Feb 2002
    Posts
    47
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Default

    On 2002-02-19 00:52, Anonymous wrote:
    I am trying to select the next visible row in a filtered range - using "activecell.offset(1,0).select" moves to the next numerical row, rather than the next visible row - any ideas?

    Select the whole filter range then :-

    Dim cell as Range
    For Each cell In Selection
    If Not cell.EntireRow.Hidden Then
    'Do your thing here
    End If
    Next cell

  3. #3
    Guest

    Default

    Thanks for your suggestion - I had been using the hidden=true? check.

    The problem with this is that the range I am using is +10,000 rows and the filtered list is about 50 rows - so this check is very time consuming. When moving through a filtered list manually (hitting the down arrow) the next visible cell is selected, so I am sure there is a faster way to code this.

    Any more suggestions would be greatly appreciated.

  4. #4
    . MrExcel's Avatar
    Join Date
    Feb 2002
    Location
    Merritt Island Florida
    Posts
    858
    Post Thanks / Like
    Mentioned
    4 Post(s)
    Tagged
    0 Thread(s)

    Default

      
    I use:

    For Each Cell in Range("A1:A50000").SpecialCells(xlCellTypeVisible)

    Next Cell

    In about 5 minutes, this message is being moved to the general Excel section.
    _________________
    MrExcel.com Consulting

    [ This Message was edited by: MrExcel on 2002-02-19 02:33 ]

User Tag List

Like this thread? Share it with others

Like this thread? Share it with others

Posting Permissions

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

 

 
DMCA.com