+ Reply to Thread
Results 1 to 2 of 2

Auto filter and Next Row

  1. #1
    Registered User
    Join Date
    05-19-2005
    Posts
    5

    Auto filter and Next Row

    Hello people,

    I am dealing with rows around 10,000, and often I add autofilter option in the macro I use.

    Once I add an autofilter (using macro), I want to jump to the rows one by one.
    Using iteration from 1 to 10,000 would take a long time.

    Is there any way to jump to the next row and the next till I reach 10,000 without using iterations?

    regards
    Bala

  2. #2
    Tom Ogilvy
    Guest

    Re: Auto filter and Next Row

    Dim rng as Range, rng1 as Range, cell as Range
    set rng = Activesheet.AutoFilter.Range.Columns(1).Cells
    set rng = rng.offset(1,0).Resize(rng.count -1)
    On error resume Next
    set rng1 = rng.SpecialCells(xlVisible)
    On Error goto 0
    if not rng1 is nothing then
    for each cell in rng
    debug.print cell.row
    Next
    Else
    msgbox "Nothing met the filter criteria"
    End if

    --
    Regards,
    Tom Ogilvy


    "balamus" <[email protected]> wrote in
    message news:[email protected]...
    >
    > Hello people,
    >
    > I am dealing with rows around 10,000, and often I add autofilter option
    > in the macro I use.
    >
    > Once I add an autofilter (using macro), I want to jump to the rows one
    > by one.
    > Using iteration from 1 to 10,000 would take a long time.
    >
    > Is there any way to jump to the next row and the next till I reach
    > 10,000 without using iterations?
    >
    > regards
    > Bala
    >
    >
    > --
    > balamus
    > ------------------------------------------------------------------------
    > balamus's Profile:

    http://www.excelforum.com/member.php...o&userid=23512
    > View this thread: http://www.excelforum.com/showthread...hreadid=377069
    >




+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

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

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1