+ Reply to Thread
Results 1 to 5 of 5

Need code to hide specific rows based on different cell value

  1. #1
    Registered User
    Join Date
    10-07-2016
    Location
    Lansing, MI
    MS-Off Ver
    2013
    Posts
    2

    Need code to hide specific rows based on different cell value

    Hi all- I don't know VB but need to accomplish hiding different ranges of rows in my spreadsheet based on the value of a field. The field options for cell f9 are 1-4. If '1' is entered in f9, then I have a range of rows below f9 to hide that don't apply. The same is true for 2 and 3. If 4 is entered, then I want all the rows to show. By searching the internet, I pieced together the following code but it doesn't work. Can you help me fix it. Thanks.

    Please Login or Register  to view this content.
    Last edited by majzeln; 11-04-2016 at 01:42 PM.

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

    Re: Need code to hide specific rows based on different cell value

    Moderation Removed. Code Tags added.
    Last edited by Winon; 11-04-2016 at 01:46 PM.
    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] .

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

    Re: Need code to hide specific rows based on different cell value

    Hello majzeln,

    Thank you.

    Use the Code like below:

    Please Login or Register  to view this content.

    Enjoy the Forum!

    Regards.

  4. #4
    Registered User
    Join Date
    10-07-2016
    Location
    Lansing, MI
    MS-Off Ver
    2013
    Posts
    2

    Re: Need code to hide specific rows based on different cell value

    Awesome! Worked like a charm! Thank you very much for your help!

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

    Re: Need code to hide specific rows based on different cell value

    Hi majzeln,

    Thank you for the feedback. You are welcome, glad I could help.

    If that takes care of your original question, please select Thread Tools from the menu link above and mark this thread as SOLVED.

    Thanks.

+ 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] Need to tweak code...Hide Rows Based on Cell Value
    By kmlloyd in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 07-21-2015, 11:05 AM
  2. [SOLVED] Hide rows based on cell value - VBA code
    By phbryan in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 05-21-2015, 12:38 PM
  3. To hide/unhide rows based on specific value in a cell.
    By @jerry in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 01-28-2014, 11:56 AM
  4. [SOLVED] First unhide all rows - then hide rows based on specific cell value for a range of cells
    By robbiekh in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 10-22-2013, 05:46 PM
  5. Looking for a VBA code to hide rows based on a single cell value
    By Dial1 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 09-30-2013, 07:04 PM
  6. Show/Hide Specific set of Rows based on Criteria in one cell
    By mrgillus in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 11-11-2010, 01:26 PM
  7. Modify code to hide rows based on the contents in a cell.
    By dcgrove in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 06-18-2009, 09:07 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