EdwardSurrey
New Member
- Joined
- May 13, 2015
- Messages
- 36
- Office Version
- 365
- Platform
- Windows
Hello
I have the following simple Macro that filters a list in Excel. It's filtering Column 3 (Names) by the criteria "B". The issue is, I plan to add new columns sometimes, and this will change the location of the field.
Is there a way to make it dynamic?
Sub Filter3()
'
' Filter3 Macro
'
'
ActiveSheet.Range("$B$7:$H$11").AutoFilter Field:=3, Criteria1:="B"
End Sub
Thanks!
I have the following simple Macro that filters a list in Excel. It's filtering Column 3 (Names) by the criteria "B". The issue is, I plan to add new columns sometimes, and this will change the location of the field.
Is there a way to make it dynamic?
Sub Filter3()
'
' Filter3 Macro
'
'
ActiveSheet.Range("$B$7:$H$11").AutoFilter Field:=3, Criteria1:="B"
End Sub
Thanks!