+ Reply to Thread
Results 1 to 5 of 5

how to find lastrow when rows hidden.

  1. #1
    Forum Contributor
    Join Date
    12-08-2020
    Location
    South Korea
    MS-Off Ver
    Excel 2010
    Posts
    108

    how to find lastrow when rows hidden.

    There are data range of a1:a10 and a7:a10 is hidden.

    Please Login or Register  to view this content.
    i want get the number 10, that is really last row.
    how can i get this?

    there's an alternative
    ActiveSheet.UsedRange.Columns(1).Rows.Count

    another way?
    Last edited by chronjy; 12-07-2021 at 11:10 AM.
    Caring environment and nature. caring you.

  2. #2
    Forum Expert sintek's Avatar
    Join Date
    12-04-2015
    Location
    Cape Town
    MS-Off Ver
    2013 | 2016 | 2019
    Posts
    13,262

    Re: how to find lastrow when rows hidden.

    Perhaps...
    Please Login or Register  to view this content.
    Last edited by sintek; 12-07-2021 at 03:31 AM.
    Good Luck
    I don't presume to know what I am doing, however, just like you, I too started somewhere...
    One-day, One-problem at a time!!!
    If you feel I have helped, please click on the star to left of post [Add Reputation]
    Also....add a comment if you like!!!!
    And remember...Mark Thread as Solved.
    Excel Forum Rocks!!!

  3. #3
    Forum Expert
    Join Date
    08-17-2007
    Location
    Poland
    Posts
    2,234

    Re: how to find lastrow when rows hidden.

    sintek,Please note that Find starts the search from the next cell after the "base" cell. Therefore, the more correct code would be:
    Please Login or Register  to view this content.
    Likewise, when you are looking for the first occurrence:
    Please Login or Register  to view this content.
    Artik

  4. #4
    Forum Expert sintek's Avatar
    Join Date
    12-04-2015
    Location
    Cape Town
    MS-Off Ver
    2013 | 2016 | 2019
    Posts
    13,262

    Re: how to find lastrow when rows hidden.

    Thanks for clarification Artik...

  5. #5
    Forum Contributor
    Join Date
    12-08-2020
    Location
    South Korea
    MS-Off Ver
    Excel 2010
    Posts
    108

    Re: how to find lastrow when rows hidden.

    thank you very much sintek & artik.

+ 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. vba code to find the last visible row when there are hidden rows below
    By Jim885 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 03-23-2020, 10:05 PM
  2. Find last row including hidden and filtered rows
    By jpruffle in forum Excel Programming / VBA / Macros
    Replies: 18
    Last Post: 09-04-2019, 12:08 AM
  3. Replies: 6
    Last Post: 08-22-2015, 08:51 AM
  4. [SOLVED] Find the LastRow
    By SIMBAtheCAT in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 07-22-2014, 11:45 AM
  5. Find lastrow and delete rows
    By tableq in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 07-25-2012, 03:31 PM
  6. Find text on hidden rows
    By CrispinB in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 04-11-2012, 07:46 PM
  7. Chart how to find lastrow?
    By Craigm in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 04-06-2006, 11:19 AM

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