VBA | Dynamic range Filters in Excel | Automatic filter

preview_player
Показать описание
Filters play a key role when you visualize data in MS excel. Here I am presenting a dynamic filter that refresh the results automatically as you change the value on the sheet itself.

If you don't know VBA macros or programming, even then you can follow these simple steps to create this.

Follow other suggested videos on our channel to learn more tips and tricks in excel.

Hit Like and subscribe to our channel to appreciate our efforts.
Рекомендации по теме
Комментарии
Автор

If I enter a value in textbox1 and then in textbox2 and then delete the value in textbox2 it triggers the error

Dan_De_Man
Автор

Hello sir, maybe you can help me I made code in Vba but it is long now I would like to make it smaller
Here part of the code:
Application.ScreenUpdating = False
If Sheets("Menu").Range("E2") = 1 Then
Sheets("toplay1").Select
Range("A1").Select
ActiveCell.Formula2R1C1 = _
"=FILTER('S1'!R[1]C[1]:R[20]C[1], 'S1'!R[1]C[1]:R[20]C[1]<>" "")"
Range("B1").Select
ActiveCell.Formula2R1C1 = _
"=FILTER('S1'!R[1]C[5]:R[20]C[5], 'S1'!R[1]C[5]:R[20]C[5]<>" "")"
The Range continues until "J1" you also notice that at "c[ ] each time 4 are added, that is because the search area moves 4 columns each time, if you can help me with this I will be able to continue with the rest I think, can you help me PLEASE
What I forgot is that the number of rows being searched is 20.

gerardvaneggermond