+ Reply to Thread
Results 1 to 6 of 6

Restore Hidden/ Visible rows and columns

  1. #1
    Forum Contributor
    Join Date
    03-02-2014
    Location
    usa
    MS-Off Ver
    MS 365
    Posts
    593

    Restore Hidden/ Visible rows and columns

    Hello,

    I have a worksheet which contains numerous hidden rows and columns.
    The hidden rows and columns are not continuous, for example, it could have rows 5, 8, 12 and columns b, g, aa hidden.
    I am wondering if there is an easy way to have a :
    Script1: which could record the current configuration of the entire worksheet; I could use a worksheet within the workbook, specifically created for this purpose which could hold the record of the hidden rows and columns.
    Script2: which could read the record created above and restores the spreadsheet to the original configuration.


    Thank you

  2. #2
    Valued Forum Contributor
    Join Date
    03-24-2020
    Location
    Thailand
    MS-Off Ver
    Office 2016
    Posts
    896

    Re: Restore Hidden/ Visible rows and columns

    Hi there,

    Give the below a try. You can set up a button for trigger each script separate.

    Please Login or Register  to view this content.
    If your Question is answered; please mark it SOLVED. If you are happy with a member's solution, say 'Thanks' and click the 'Star' to Add Reputation.

  3. #3
    Forum Contributor
    Join Date
    03-02-2014
    Location
    usa
    MS-Off Ver
    MS 365
    Posts
    593

    Re: Restore Hidden/ Visible rows and columns

    ORoos,
    Thanks for the response.
    This is not what I am after..
    I want to be able to restore the current worksheet configuration after I made changes to it.
    That is why I need to record (in Script1) the Visible/Hidden rows, columns, so I could use that info to restore the layout in Script2; or.... perhaps, there is a better way to do it?
    Thanks

  4. #4
    Valued Forum Contributor
    Join Date
    03-24-2020
    Location
    Thailand
    MS-Off Ver
    Office 2016
    Posts
    896

    Re: Restore Hidden/ Visible rows and columns

    Hi there,

    Please see attached file.

    There are some rows and columns hidden.
    Run the first macro = all cells and rows are visible.
    Run second macro = all rows and cells originally hidden (before first macro)will be hidden again, restore layout.
    Attached Files Attached Files

  5. #5
    Forum Contributor
    Join Date
    03-02-2014
    Location
    usa
    MS-Off Ver
    MS 365
    Posts
    593

    Re: Restore Hidden/ Visible rows and columns

    Thank you ORoos!

  6. #6
    Valued Forum Contributor
    Join Date
    03-24-2020
    Location
    Thailand
    MS-Off Ver
    Office 2016
    Posts
    896

    Re: Restore Hidden/ Visible rows and columns

    Thanks for the Rep

    If this answered your query, please mark it as SOLVED via the Thread Tools at the top of your original post.

    Cheers,

+ 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. [SOLVED] Some Rows are not visible but they were not hidden...
    By excellon in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 10-27-2019, 03:29 AM
  3. Copy and Paste VISIBLE rows not hidden
    By booney440 in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 09-09-2015, 08:03 AM
  4. Replies: 1
    Last Post: 02-11-2015, 07:47 AM
  5. [SOLVED] Can VB Save hidden/grouped columns state, unhide all, then restore columns to saved state
    By JTwrk in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 05-27-2012, 02:54 PM
  6. Resize Visible Rows based only on Visible Columns text
    By Zimbo in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 04-22-2009, 10:55 AM
  7. [SOLVED] How do I calculate only visible data (not hidden rows)?
    By Peter in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 08-18-2006, 12:40 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