Auto refresh table in other tab based on a filter

Dani_LobP

Board Regular
Joined
Aug 16, 2019
Messages
126
Office Version
  1. 365
Platform
  1. Windows
Hello all,

I'd like to know how to have a table be automatically refreshed based on a filter.

The thing is that I have 1 tab, where I paste some data (its a table), and then i have in other tab, another table which is populated taking values of specific columns from first mentioned table. And in this case, one of the columns is filtered with a True status...

So the idea is that if I add new rows in first tab, where data table is, then ideally, the second tab where filter is applied, will be refreshed without having to go manually there, and select again filter TRUE.

Not sure if it makes sense what I say... I tried this code below in the tab (took it from How to automatically reapply auto-filter when data changes in Excel?):

VBA Code:
Private Sub Worksheet_Change(ByVal Target As Range)
   Sheets("Sheet3").AutoFilter.ApplyFilter
End Sub

but doesn't seem to be doing what i expect.

Below screenshot of the table where i apply a filter:

1649688257120.png


To mention that the table above mentioned, each cell is linked to the table in the first tab.

And screenshot of table from first tab where I am adding rows:

1649688306689.png


Hope it makes sense what i try to explain.

On the meantime what i made is a button with a macro that will just remove/add filter again.. but would be nice to be able to remove button and have that happening automatically if possible.

Thanks in advance!

Regards.
 

Excel Facts

Excel Joke
Why can't spreadsheets drive cars? They crash too often!

Forum statistics

Threads
1,215,522
Messages
6,125,312
Members
449,218
Latest member
Excel Master

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