+ Reply to Thread
Results 1 to 3 of 3

Last used row with collapse row

  1. #1
    Registered User
    Join Date
    05-07-2021
    Location
    Naples, Italy
    MS-Off Ver
    Office 2016
    Posts
    30

    Last used row with collapse row

    Hello everyone!

    I am trying to determine the last used row of a range that could grow to detect changes via the worksheet sub

    Please Login or Register  to view this content.
    It gets complicated as the rows are grouped and usually collapse so with the following code

    Please Login or Register  to view this content.
    I get the last used row displayed. I thought of adding a character at the row below the last not displayed one as workaround but I was wondering if there was a more "elegant".


    Many thanks for your ideas!

  2. #2
    Valued Forum Contributor
    Join Date
    04-01-2015
    Location
    The Netherlands
    MS-Off Ver
    2003/2007/2010/2016/office 365
    Posts
    880

    Re: Last used row with collapse row

    A sample file always works better. But possibly like this:
    Please Login or Register  to view this content.
    Messages have been translated from Dutch to English by means of google translate.

  3. #3
    Registered User
    Join Date
    05-07-2021
    Location
    Naples, Italy
    MS-Off Ver
    Office 2016
    Posts
    30

    Re: Last used row with collapse row

    BOOM! Thank you ever so much

+ 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. Collapse the Ribbon using VBA
    By Tiger20 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 09-15-2019, 09:30 AM
  2. collapse columns in conjunction with a collapse rows macro
    By waternut in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 10-13-2015, 04:50 PM
  3. [SOLVED] Collapse Rows with +, -
    By 2000m2 in forum Excel General
    Replies: 4
    Last Post: 09-02-2013, 08:11 PM
  4. VBA to Expand/Collapse Row Groupings
    By Neverfail in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 07-09-2012, 07:03 AM
  5. can't collapse subtotaled data
    By mic mac in forum Excel General
    Replies: 2
    Last Post: 03-18-2010, 08:46 PM
  6. Collapse Columns
    By donlincolnef in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 02-20-2010, 04:03 PM
  7. Columns - Expand and Collapse
    By Cecil in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 09-04-2008, 10:54 AM

Tags for this Thread

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