Are you wanting the filter script to automatically run when you change a value in D9?Any Help would be appreciated. I had one issue solved on here today if I can get this one I would be ecstatic!
Thank you!
- Jessy
Private Sub Worksheet_Change(ByVal Target As Range)
If Target.CountLarge > 1 Then Exit Sub
If Not Target.Address(0, 0) = "D9" Then Exit Sub
If Target = "" Then
Range("A10:C10").AutoFilter 1
Else
Range("A10:C10").AutoFilter 1, Target.Value
End If
End Sub
Are you wanting the filter script to automatically run when you change a value in D9?
Or are you saying you want to filter the range according to the value in D9
Or both.
Show us the script which will do the filtering's.
This will automatically filter col A, whenever D9 is changed.
This needs to go in the sheet module containing the D9 drop & assumes the data to filter is on the same sheet.Code:Private Sub Worksheet_Change(ByVal Target As Range) If Target.CountLarge > 1 Then Exit Sub If Not Target.Address(0, 0) = "D9" Then Exit Sub If Target = "" Then Range("A10:C10").AutoFilter 1 Else Range("A10:C10").AutoFilter 1, Target.Value End If End Sub
When you say it stops working, do you get any errors, does Xl crash, or is it simply that the sheet no longer filters?