+ Reply to Thread
Results 1 to 3 of 3

Help with hiding rows based on content of a cell

  1. #1
    Registered User
    Join Date
    01-08-2020
    Location
    Brisbane, Australia
    MS-Off Ver
    365
    Posts
    1

    Help with hiding rows based on content of a cell

    Hi can anyone help me with some code for hiding rows.

    I have one cell (B2) where you can select different options (in my example, numbers 1 to 4).

    If I select "1" in this cell (B2), I would like to only show the rows that have "1" in column A. So hiding rows 6, 8 and 9 in the table.
    If I select "2" in cell B2, I would like to only show the rows that have "2" in column A.
    Etc.

    Untitled.jpg

    Help would be much appreciated!!

  2. #2
    Forum Guru bakerman2's Avatar
    Join Date
    10-03-2012
    Location
    Antwerp, Belgium
    MS-Off Ver
    MO Prof Plus 2016
    Posts
    6,907

    Re: Help with hiding rows based on content of a cell

    For starters, in SheetModule.

    Please Login or Register  to view this content.
    Avoid using Select, Selection and Activate in your code. Use With ... End With instead.
    You can show your appreciation for those that have helped you by clicking the * at the bottom left of any of their posts.

  3. #3
    Valued Forum Contributor
    Join Date
    11-28-2015
    Location
    indo
    MS-Off Ver
    2016 64 bitt
    Posts
    1,260

    Re: Help with hiding rows based on content of a cell

    Please Login or Register  to view this content.
    "ThankyouFor Attention * And Your Help!!"

+ 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] Help Hiding Row based on Cell content
    By ptmuldoon in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 07-10-2014, 01:11 AM
  2. Hiding rows based on content of a cell
    By Commissar in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 07-21-2013, 01:05 AM
  3. Replies: 3
    Last Post: 06-25-2013, 01:21 PM
  4. 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
  5. Hiding rows on cell content and mandatory fields
    By MagicMan in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 03-08-2011, 06:07 AM
  6. Hiding Rows Based on Cell Content
    By ChristineJ in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 05-23-2009, 03:55 AM
  7. Hiding rows based on cell content
    By brutus in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 11-14-2005, 11: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