+ Reply to Thread
Results 1 to 2 of 2

Selecting visible rows post applying filters

Hybrid View

  1. #1
    Registered User
    Join Date
    12-03-2013
    Location
    Mumbai
    MS-Off Ver
    Excel 2007
    Posts
    36

    Selecting visible rows post applying filters

    Hi All,

    I have an excel spreadsheet(Sheet1) with information in 35,000 odd trade lines, which is eventually compared against another set of records from another tab (Sheet2) in the same spreadsheet.

    Have recorded a macro which does the lookup using the common parameters and returns the unique identifer in Sheet1 from Sheet2. Post updating the UID's in Sheet1 - range O:O, I need to select all the rows which are not matched and move it to another tab.

    I apply filter on column O1 and select #N/A and select the complete range. Via VB I use the below code to move between to the visible row from filtered row:

    Range("O1").Select
    ActiveCell.Offset(1, 0).Select
    Do Until ActiveCell.EntireRow.Hidden = False
    ActiveCell.Offset(1, 0).Select
    Loop

    If the visible row is within the first 1,000 rows, it doesn't take much time. However if the same is around 25,000th row, it takes more than 5-6 mins in order to move to the visible row.

    Do you guys have a solution for this problem.

    Regards,
    Raghu

  2. #2
    Forum Expert
    Join Date
    06-12-2012
    Location
    Ridgefield Park, New Jersey
    MS-Off Ver
    Excel 2003,2007,2010
    Posts
    10,241

    Re: Selecting visible rows post applying filters

    Maybe try:

    Sub Raghukumarn()
    Application.ScreenUpdating = False
    Application.Calculation = xlCalculationManual
    
    'YOUR CODE HERE
    
    Application.ScreenUpdating = True
    Application.Calculation = xlCalculationAutomatic
    End Sub

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. [SOLVED] Applying formula only to visible rows.
    By Folshot in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 01-22-2014, 12:01 PM
  2. Checking values between cells and then applying filters/hide rows
    By andie2013 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 10-26-2012, 11:28 AM
  3. Applying filters
    By jimz in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 09-14-2011, 07:49 AM
  4. Whne applying filters more rows are deleted that required. Not enough space for accur
    By boc_est1986 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 12-15-2009, 05:34 AM
  5. selecting visible rows
    By sexgod in forum Excel - New Users/Basics
    Replies: 5
    Last Post: 04-14-2007, 04:26 PM

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