+ Reply to Thread
Results 1 to 4 of 4

Hide/ Unhide Columns + Rows based on cell value

  1. #1
    Registered User
    Join Date
    02-25-2021
    Location
    Brisbane
    MS-Off Ver
    2016
    Posts
    4

    Hide/ Unhide Columns + Rows based on cell value

    Hi All,

    I am struggling to hide/unhide columns and rows based on cell value. I am trying to Hide/ Unhide Columns using checkboxes on another sheet.

    Simply, if I click on Checkbox for List 1, it will keep all of List 1 in the sheet 'Lists'. If I do not click on Checkbox for List 2, it will hide all of List 2 in the sheet 'Lists'.

    I appreciate the help, please find the attached spreadsheet.

    Thanks,
    Joseph.
    Attached Files Attached Files

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

    Re: Hide/ Unhide Columns + Rows based on cell value

    Give this a go...
    If it is supposed to be other way round, change the False to True and True to False...See comment in code...

    Please Login or Register  to view this content.
    Attached Files Attached Files
    Last edited by sintek; 06-20-2021 at 02:11 PM.
    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
    Registered User
    Join Date
    02-25-2021
    Location
    Brisbane
    MS-Off Ver
    2016
    Posts
    4

    Re: Hide/ Unhide Columns + Rows based on cell value

    Hi Sintek,

    Thank you this worked well! This was just a test for something that I am trying to do. Is there any way to manually set the amount of rows I can hide? For example, Rows("5:13"). I can't get mine to work...

    Any help will be greatly appreciated!

    Thanks,
    Joseph.

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

    Re: Hide/ Unhide Columns + Rows based on cell value

    This works...
    Please Login or Register  to view this content.

+ 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. help please - hide unhide rows and columns based on drop down selection
    By iamgujju in forum Excel Programming / VBA / Macros
    Replies: 14
    Last Post: 07-01-2019, 10:56 AM
  2. [SOLVED] Hide or Unhide Rows/Columns Based on Condition
    By Rustico18 in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 06-20-2017, 02:29 PM
  3. [SOLVED] Hide/Unhide columns based on the value of the cell help!
    By mso3 in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 08-11-2014, 09:03 PM
  4. Need to Hide/Unhide Rows and Columns Based on Several Date Ranges
    By zlorinc in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 03-20-2014, 04:32 PM
  5. [SOLVED] Checkbox VBA - Hide/Unhide Rows and/or Columns based on cell values
    By gravy258 in forum Excel Programming / VBA / Macros
    Replies: 10
    Last Post: 02-21-2013, 05:39 PM
  6. Hide & Unhide columns based on a cell value
    By DaveNUFC in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 02-21-2010, 09:40 AM
  7. [SOLVED] Hide or Unhide certain columns based on a cell value
    By [email protected] in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 07-10-2006, 01:04 PM

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