+ Reply to Thread
Results 1 to 3 of 3

first and last row not hidden

  1. #1
    Registered User
    Join Date
    01-25-2013
    Location
    seville
    MS-Off Ver
    Excel 2007
    Posts
    16

    first and last row not hidden

    hi there!!!

    I'm trying to figure out the code to find the first and last cells visible in a sheet with autofilter. For example, I've a sheets filter in range A5, in such way that the rows 6 to 15 are hidden and the rows 40 and 45 are the lasts and hidden too.

    So, if I ask for the first cells I should recieve 16 as answer and if I ask for the last cell the answer should be 39.

    I tried:
    Please Login or Register  to view this content.
    but that doesn't work... Any guess??

    thank you!!!!

  2. #2
    Forum Expert
    Join Date
    07-15-2012
    Location
    Leghorn, Italy
    MS-Off Ver
    Excel 2010
    Posts
    3,431

    Re: first and last row not hidden

    attach please a sample file
    If solved remember to mark Thread as solved

  3. #3
    Forum Guru HaHoBe's Avatar
    Join Date
    02-19-2005
    Location
    Hamburg, Germany
    MS-Off Ver
    work: 2016 on Win10 (notebook), private: 365 on Win11 (desktop), 2019 on Win11 (notebook)
    Posts
    8,199

    Re: first and last row not hidden

    Hi, pinguino,

    please adjust the range wherre the data starts (itīs in A2 for this code):
    Please Login or Register  to view this content.
    Absolutely no need for any workbook as a sample.

    Ciao,
    Holger
    Use Code-Tags for showing your code: [code] Your Code here [/code]
    Please mark your question Solved if there has been offered a solution that works fine for you

+ 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. Getting data from hidden files and leaving them hidden
    By CJPHX in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 06-12-2010, 04:15 PM
  2. VBA Function Vlookup data from Hidden sheet in hidden workbook
    By wotadude in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 11-16-2008, 11:22 PM
  3. Replies: 3
    Last Post: 08-08-2006, 08:10 AM
  4. Replies: 2
    Last Post: 07-20-2006, 02:51 PM
  5. choose Locked & Hidden :Hidden Cells
    By Khalil Handal in forum Excel General
    Replies: 2
    Last Post: 12-14-2005, 04:50 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