+ Reply to Thread
Results 1 to 3 of 3

ActiveCell.Offset excluding hidden rows

  1. #1
    Registered User
    Join Date
    09-19-2013
    Location
    Manchester, England
    MS-Off Ver
    Excel 2010
    Posts
    3

    ActiveCell.Offset excluding hidden rows

    Hello all, this is my first post so bear with me.

    I have a workbook in which I have several columns of data and roughly 7000 rows.
    I have 2 filters in place and would like to select all visible rows from the 21st visible row down in order to hide those so that the user can select to see just the Top 20 (xlTop10Items does not work because it includes hidden rows).

    When I use the below code Excel highlights all visible rows:

    Please Login or Register  to view this content.

    As I'm very much a beginner in VBA I can't figure it out. I've been searching for answers for the best part of a day and can't find a solution that works.

    Any input would be very much appreciated.

    Kind regards,
    Pierre
    Last edited by sleepa; 10-31-2013 at 09:37 AM.

  2. #2
    Registered User
    Join Date
    09-19-2013
    Location
    Manchester, England
    MS-Off Ver
    Excel 2010
    Posts
    3

    Re: ActiveCell.Offset excluding hidden rows

    Hi,

    Apologies for this but it's just to push my question back to the top of the queue.

    I'm running out of Google searches to find the answer!

    Any input would be much appreciated.

    Many thanks,
    Pierre

  3. #3
    Registered User
    Join Date
    09-19-2013
    Location
    Manchester, England
    MS-Off Ver
    Excel 2010
    Posts
    3

    Re: ActiveCell.Offset excluding hidden rows

    I've found a work around for now using the following code:

    Please Login or Register  to view this content.
    This moves the cursor to the next visible cell and I've repeated the code 20 times!

    It works well but if anyone, one day, finds a less long winded solution then I'd be interested to hear what it is

    Thanks.

+ 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] Sumif & Countif (excluding hidden rows)
    By JimExcel in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 02-05-2013, 07:06 AM
  2. [SOLVED] Display range excluding hidden rows in
    By jmethejedi in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 08-26-2012, 07:06 PM
  3. SUMIF Excluding Hidden Rows
    By bleat0r in forum Excel General
    Replies: 3
    Last Post: 09-16-2010, 02:36 AM
  4. How can I do number series excluding the hidden rows?
    By Maryam in forum Excel - New Users/Basics
    Replies: 1
    Last Post: 10-16-2008, 01:57 AM
  5. SUMIF Excluding hidden rows
    By TREMA in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 08-27-2008, 08:54 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