PatRichard
New Member
- Joined
- Dec 29, 2018
- Messages
- 29
- Office Version
- 365
- Platform
- Windows
I have a macro based on a page here
Sub Gen1()
Range("A4").Select
Selection.CurrentRegion.Select
Selection.AutoFilter
ActiveSheet.Range("$A$3:$AF$117").AutoFilter Field:=3, Criteria1:="1"
End Sub
It works great. However, my table of data is constantly growing. I'm struggling to find a way to automatically apply the filter to the current table instead of editing the macro each time to include the range. Can someone point me in the right direction?
Sub Gen1()
Range("A4").Select
Selection.CurrentRegion.Select
Selection.AutoFilter
ActiveSheet.Range("$A$3:$AF$117").AutoFilter Field:=3, Criteria1:="1"
End Sub
It works great. However, my table of data is constantly growing. I'm struggling to find a way to automatically apply the filter to the current table instead of editing the macro each time to include the range. Can someone point me in the right direction?