350Z Pilot
Board Regular
- Joined
- Nov 18, 2008
- Messages
- 64
I am trying to use a Range Name instead of a Column# (Field#)
Instead of this:
Application.Goto Reference:="Sheet1"
ActiveSheet.Range("$A$1:$GZ$999999").AutoFilter Field:=137, Criteria1:="Y"
I would like to use a Range Name like this:
Application.Goto Reference:="Sheet1"
ActiveSheet.Range("$A$1:$GZ$999999").AutoFilter Field:="T_Restricted_List", Criteria1:="Y"
My columns can be moved without my knowledge so a macro using a Column Count is vulnerable. A Range Name will move with the columns in a predictable manner.
Thanks
Instead of this:
Application.Goto Reference:="Sheet1"
ActiveSheet.Range("$A$1:$GZ$999999").AutoFilter Field:=137, Criteria1:="Y"
I would like to use a Range Name like this:
Application.Goto Reference:="Sheet1"
ActiveSheet.Range("$A$1:$GZ$999999").AutoFilter Field:="T_Restricted_List", Criteria1:="Y"
My columns can be moved without my knowledge so a macro using a Column Count is vulnerable. A Range Name will move with the columns in a predictable manner.
Thanks