+ Reply to Thread
Results 1 to 10 of 10

Hiding Rows Depending on Their Value

  1. #1
    Forum Contributor
    Join Date
    09-29-2011
    Location
    ɹǝpun uʍop
    MS-Off Ver
    365
    Posts
    250

    Hiding Rows Depending on Their Value

    Hi,

    I want to be able to hide specific rows depending on their value. If value = 1, row gets hidden when running the macro. If value 0 (or anything else), row is unhidden.
    All rows are unhidden by running a second macro. Macros controlled by Option Buttons.

    Please see attached.

    Cheers, Paul
    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,239

    Re: Hiding Rows Depending on Their Value

    Please Login or Register  to view this content.
    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 Contributor
    Join Date
    09-29-2011
    Location
    ɹǝpun uʍop
    MS-Off Ver
    365
    Posts
    250

    Re: Hiding Rows Depending on Their Value

    Does the trick. Thanks

  4. #4
    Forum Expert
    Join Date
    12-24-2007
    Location
    Alsace - France
    MS-Off Ver
    MS 365 Office Suite
    Posts
    5,066

    Re: Hiding Rows Depending on Their Value

    See next code
    Please Login or Register  to view this content.
    Attached Files Attached Files
    - Battle without fear gives no glory - Just try

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

    Re: Hiding Rows Depending on Their Value

    Glad I could contribute...Tx for rep +

  6. #6
    Forum Guru Winon's Avatar
    Join Date
    02-20-2007
    Location
    East Rand, R.S.A.
    MS-Off Ver
    2010
    Posts
    6,113

    Re: Hiding Rows Depending on Their Value

    And nobody toggles Screenupdating

    Please Login or Register  to view this content.
    Please consider:

    Be polite. Thank those who have helped you. Then Click on the star icon in the lower left part of the contributor's post and add Reputation. Cleaning up when you're done. If you are satisfied with the help you have received, then Please do Mark your thread [SOLVED] .

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

    Re: Hiding Rows Depending on Their Value

    @ Winon

    Hallo daar mater...Can't give away all our secrets lol. A little flickering so the OP can see code work it's magic is mesmerizing...Such a small range to contend with.

  8. #8
    Forum Expert
    Join Date
    12-24-2007
    Location
    Alsace - France
    MS-Off Ver
    MS 365 Office Suite
    Posts
    5,066

    Re: Hiding Rows Depending on Their Value

    PHP Code: 
    And nobody toggles Screenupdating 
    Yes good comment
    Thank you Winon

  9. #9
    Forum Contributor
    Join Date
    09-29-2011
    Location
    ɹǝpun uʍop
    MS-Off Ver
    365
    Posts
    250

    Re: Hiding Rows Depending on Their Value

    Thanks for the input.
    The range in the actual workbook I'm using is considerably larger and Yes, I've already turned off the screen updating.

    Cheers.

  10. #10
    Forum Guru Winon's Avatar
    Join Date
    02-20-2007
    Location
    East Rand, R.S.A.
    MS-Off Ver
    2010
    Posts
    6,113

    Re: Hiding Rows Depending on Their Value

    @ PCI,

    Thank you for the acknowledgement and Rep+, I really appreciate it, Buddy.

+ 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. [SOLVED] Hiding sheets/rows depending on the value in a cell.
    By ctownballer03 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 11-24-2016, 09:20 PM
  2. Macros auto hiding of rows depending on cell content
    By nad23 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 12-08-2012, 12:40 PM
  3. [SOLVED] Hiding rows depending on the value of a cell picked from a drop down menu
    By orly_sm in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 11-11-2012, 03:30 PM
  4. Replies: 0
    Last Post: 11-10-2012, 11:05 AM
  5. hiding range of columns depending on a set value
    By toeragh in forum Excel Programming / VBA / Macros
    Replies: 11
    Last Post: 12-12-2007, 12:54 PM
  6. Hiding rows depending on data
    By oakman in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 10-03-2006, 12:21 PM
  7. Replies: 2
    Last Post: 10-18-2005, 10:05 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