All.
In my spreadsheet, I am filtering by one criteria & having all rows deleted once they have been identified.
Upon completion, I have a custom filter based on two sets of criteria that should show me the data for "Bond" & "Repo".
One issue I have found is that I need to manually add the auto filter before the first macro can fire.
1. Can someone assist on this so know manual intervention is needed ?
2. The second macro doesn't give me the data I require even after using the recorder.
3. Can the macros be combined ?
Auto Filter Code:
Sub Caesar()
With Sheets("sens data").Columns("AJ:AJ").Rows("2:13000")
.AutoFilter Field:=36, Criteria1:="ERASE"
.EntireRow.Delete Shift:=xlDown
End With
End Sub
Custom Filter Code:
Sub Brutus()
Rows("1:1").Select
Selection.AutoFilter
Selection.AutoFilter Field:=6, Criteria1:="<>Bond*", Operator:=xlAnd, _
Criteria2:="<>Repo*"
Range("A1").Select
End Sub
Thanx.
In my spreadsheet, I am filtering by one criteria & having all rows deleted once they have been identified.
Upon completion, I have a custom filter based on two sets of criteria that should show me the data for "Bond" & "Repo".
One issue I have found is that I need to manually add the auto filter before the first macro can fire.
1. Can someone assist on this so know manual intervention is needed ?
2. The second macro doesn't give me the data I require even after using the recorder.
3. Can the macros be combined ?
Auto Filter Code:
Sub Caesar()
With Sheets("sens data").Columns("AJ:AJ").Rows("2:13000")
.AutoFilter Field:=36, Criteria1:="ERASE"
.EntireRow.Delete Shift:=xlDown
End With
End Sub
Custom Filter Code:
Sub Brutus()
Rows("1:1").Select
Selection.AutoFilter
Selection.AutoFilter Field:=6, Criteria1:="<>Bond*", Operator:=xlAnd, _
Criteria2:="<>Repo*"
Range("A1").Select
End Sub
Thanx.