Hi all
I’m looking to be able to either amend the code below orhave a new code that loops through the range and identifies every 20th visible row (after the header) and adds “yes” to column “S”.
I've been able to find an alter code that identifies andselects the first 20 rows but I’ve got to be honest and say I haven’t got aclue where to start getting it to loop through the range of data (or really what the original code does but I know it works).
Any ideas or help appreciated
I’m looking to be able to either amend the code below orhave a new code that loops through the range and identifies every 20th visible row (after the header) and adds “yes” to column “S”.
I've been able to find an alter code that identifies andselects the first 20 rows but I’ve got to be honest and say I haven’t got aclue where to start getting it to loop through the range of data (or really what the original code does but I know it works).
HTML:
Public Sub AllChanges_filter()
Application.ScreenUpdating = False
Sheets("AllChanges").Select
Dim lngStart As Long, lngEnd As Long
lngStart =Sheets("Sheet2").Range("a5").Value
lngEnd =Sheets("Sheet2").Range("b13").Value
ActiveSheet.Range("$A$1:$Q$364").AutoFilterfield:=18, Criteria1:="Y"
ActiveSheet.Range("$A$1:$Q$364").AutoFilterfield:=17, Criteria1:= "Post Approval"
ActiveSheet.Range("$A$1:$Q$364").AutoFilterfield:=16, Criteria1:="=0", Operator:=xlOr, Criteria2:="=I"
ActiveSheet.Range("$A$1:$aa$364").AutoFilterfield:=14, Criteria1:=">=" & lngStart, Operator:=xlAnd, Criteria2:="<="& lngEnd
Columns("p:p").Select
Selection.EntireColumn.Hidden = True
Range("A1").Select
Sheets("SnapShot").Select
Application.ScreenUpdating = True
End Sub
Any ideas or help appreciated
Last edited: