+ Reply to Thread
Results 1 to 5 of 5

Hide rows based on cell value

  1. #1
    Forum Contributor
    Join Date
    07-02-2013
    Location
    abbots langley
    MS-Off Ver
    Excel 2010
    Posts
    316

    Hide rows based on cell value

    HI

    I have pasted the below code into the worksheet that i want to execue the code on, however it is not hiding/unhiding rows. Can someone point me in the right direction on what i may have missed please?

    Please Login or Register  to view this content.

  2. #2
    Forum Expert BadlySpelledBuoy's Avatar
    Join Date
    06-14-2013
    Location
    East Sussex, UK
    MS-Off Ver
    365
    Posts
    7,468

    Re: Hide rows based on cell value

    Did you paste the code in the worksheet module rather than in a standard module?

    It works fine for me, but that really depends on what you're actually trying to do.

    Do you want this to fire only when D10 is changed or when ANY cell is changed?

    BSB

  3. #3
    Forum Expert BadlySpelledBuoy's Avatar
    Join Date
    06-14-2013
    Location
    East Sussex, UK
    MS-Off Ver
    365
    Posts
    7,468

    Re: Hide rows based on cell value

    Assuming you only want the code to fire when D10 is changed, the below would work.
    Please Login or Register  to view this content.
    See attached for where the code needs to go (worksheet module)

    BSB
    Attached Files Attached Files

  4. #4
    Forum Contributor
    Join Date
    07-02-2013
    Location
    abbots langley
    MS-Off Ver
    Excel 2010
    Posts
    316

    Re: Hide rows based on cell value

    Hi BSB

    Thansk so much for yur response i have just pasted in that code and it works perfectly...not sure what was wrong with my original but i have replaced it with yours.

    Thansk so much :-)

  5. #5
    Forum Expert BadlySpelledBuoy's Avatar
    Join Date
    06-14-2013
    Location
    East Sussex, UK
    MS-Off Ver
    365
    Posts
    7,468

    Re: Hide rows based on cell value

    Happy to help

    BSB

+ 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. Hide rows based on cell value
    By arunkoikkara in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 05-30-2020, 09:54 AM
  2. Hide Rows/Hide Columns Based on Value in Cell
    By brickwall823 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 07-24-2015, 02:42 PM
  3. Need Toggle Button to hide/unhide rows based on cell value in non concurrent rows
    By The Phoenix in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 07-13-2015, 10:49 AM
  4. Hide Rows based on cell value
    By mjg060468 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 04-07-2014, 12:28 PM
  5. [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
  6. Hide rows based on the value of a cell
    By vbagreenie in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 03-31-2012, 10:12 PM
  7. Hide rows based on a value in cell A1
    By Torpedojager in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 06-20-2008, 08:14 AM

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