Porcupine_
New Member
- Joined
- Jul 26, 2016
- Messages
- 28
Hello,
I have a column starting from cell D22, which is set on a filter to eliminate the value "N" and keep the value "Y". The value ("Y" or "N") is generated by a formula that looks at whether the corresponding value in column A matches a value selected from a dropdown list in cell A6.
The problem is, whenever I change the value in cell A6, the column D does not re-filter to show only "Y" values, and is left with "N" values.
I am looking for a way to re-apply filters on the sheet whenever I change a value in Cell A6.
I have tried using this VBA:
Private Sub Worksheet_SelectionChange(ByVal Target As Range)
ActiveSheet.AutoFilter.ApplyFilter
End Sub
But it isn't working for me - it doesn't come up with an error, but it just doesn't re-filter.
Is anybody able to help with this?
Thank you,
Vicky
I have a column starting from cell D22, which is set on a filter to eliminate the value "N" and keep the value "Y". The value ("Y" or "N") is generated by a formula that looks at whether the corresponding value in column A matches a value selected from a dropdown list in cell A6.
The problem is, whenever I change the value in cell A6, the column D does not re-filter to show only "Y" values, and is left with "N" values.
I am looking for a way to re-apply filters on the sheet whenever I change a value in Cell A6.
I have tried using this VBA:
Private Sub Worksheet_SelectionChange(ByVal Target As Range)
ActiveSheet.AutoFilter.ApplyFilter
End Sub
But it isn't working for me - it doesn't come up with an error, but it just doesn't re-filter.
Is anybody able to help with this?
Thank you,
Vicky