mallandroid
New Member
- Joined
- Jan 12, 2024
- Messages
- 2
- Office Version
- 365
- Platform
- Windows
I have created a very simple VBA code that automatically applies a filter on the single column I have filtered on a table, which I have named “BB.Tbl1”. However, I want the VBA to apply to multiple tables that are all on the same worksheet, so I want it to include my other tables named "BB.Tbl2" and "BB.Tbl3", and those tables are the exact same design and also have a single filter on the same column. My code works only for the first table, and it currently looks like this:
Private Sub Worksheet_Change(ByVal Target As Range)
Me.Range("BB.Org1").ListObject.AutoFilter.ApplyFilter
End Sub
Let me know how I can update the VBA to work for all 3 tables. Thanks!
Private Sub Worksheet_Change(ByVal Target As Range)
Me.Range("BB.Org1").ListObject.AutoFilter.ApplyFilter
End Sub
Let me know how I can update the VBA to work for all 3 tables. Thanks!