Hiding rows with a drop-down list

Fran76cis

New Member
Joined
Apr 28, 2019
Messages
1
Hi,


File with an examlpe - https://www.dropbox.com/s/pcn5ai8zamb0hpg/Example 1.xlsm?dl=0


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
 

Excel Facts

Can Excel fill bagel flavors?
You can teach Excel a new custom list. Type the list in cells, File, Options, Advanced, Edit Custom Lists, Import, OK

Forum statistics

Threads
1,224,823
Messages
6,181,181
Members
453,022
Latest member
Mohamed Magdi Tawfiq Emam

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top