Sukumar
New Member
Hi,
Is it possibile to Name a Range (for example, "$A$1:$AI$3210" as NewRange) and then use it in following code: -
Is it possibile to Name a Range (for example, "$A$1:$AI$3210" as NewRange) and then use it in following code: -
Code:
Dim LastRowofSheet As Long
Dim LastColnofSheet As Long
LastRowofSheet = Cells(Rows.Count, 1).End(xlUp).Row
LastColnofSheet = Cells(1, Columns.Count).End(xlToLeft).Column
ActiveSheet.Range("$A$1:$AI$3210").AutoFilter Field:=1, Criteria1:="=2200*", Operator:=xlAnd