+ Reply to Thread
Results 1 to 3 of 3

Hiding rows with a drop-down list

  1. #1
    Registered User
    Join Date
    04-28-2019
    Location
    Poland
    MS-Off Ver
    2019
    Posts
    2

    Hiding rows with a drop-down list

    Hi,

    In the attachment file with an examlpe.

    It's a part of the test checking the knowledge of the training participant.

    When someone fills the fields and comes to the conclusion that, however,
    he should not answer, then set to "Not applicable" and hides unnecessary
    verses - checkboxes and fields which can be filled out.

    Verses 2-5 should be hidden as we switch A1 "Not applicable"
    but if someone type something into a "grey" cell's before switching to
    "Not applicable" these verses, unfortunately, do not hide, even when
    we erase everything from this cell?

    The filter is based on the word STOP in the cell, that's why it does not work - how else to do it to work.

    VBA code:

    Private Sub Worksheet_Change(ByVal Target As Range)

    If Me.FilterMode Then Me.AutoFilter.ApplyFilter

    End Sub
    Attached Files Attached Files

  2. #2
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: Hiding rows with a drop-down list

    Is this truly representative of your data and this sheet only ever consists of rows 1:5 where 2:5 are capable of being hidden unless A4 of A5 contain a value?

    I can't help thinking there's more to this so please clarify
    Richard Buttrey

    RIP - d. 06/10/2022

    If any of the responses have helped then please consider rating them by clicking the small star icon below the post.

  3. #3
    Registered User
    Join Date
    04-28-2019
    Location
    Poland
    MS-Off Ver
    2019
    Posts
    2

    Re: Hiding rows with a drop-down list

    Hi,

    Yes, this is a clipping from a large sheet -
    but these are repeating elements (similar - sometimes is only checkboxes,
    sometimes only fields which can be filled out and sometimes mix as it's here) that the participant retracts
    if he / she thinks that the topic is not applicable
    and should not be answered (then all lines 2-5 must be hidden - all
    must be hidden or all must be filled out if he / she thinks that should be answered
    but as I said if someone type something into a "grey" cell's before switching to
    "Not applicable" these verses, unfortunately, do not hide, even when
    he / she erase everything from this cell's).

    Data from these fields are not used in other places.


    Greetings,
    Attached Files Attached Files

+ 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 blank rows in a drop down data validation list, help please?
    By A440 in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 03-12-2019, 06:11 AM
  2. [SOLVED] Hiding cells from a drop down list
    By Aris in forum Excel Programming / VBA / Macros
    Replies: 14
    Last Post: 05-29-2014, 05:24 AM
  3. Hiding cells from a drop down list
    By Aris in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 05-28-2014, 05:53 AM
  4. hiding a cascading drop down list
    By silverdan7 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 02-09-2013, 12:06 AM
  5. [SOLVED] Hiding rows with drop down list (VBA code help)
    By dsl99 in forum Excel Programming / VBA / Macros
    Replies: 12
    Last Post: 12-17-2012, 02:29 PM
  6. Replies: 1
    Last Post: 06-01-2012, 12:06 PM
  7. Drop down list for hiding lines
    By Spencinator in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 10-14-2008, 11:02 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