VBA learner ITG
Active Member
- Joined
- Apr 18, 2017
- Messages
- 272
- Office Version
- 365
- Platform
- Windows
- MacOS
Hi Peers,
Can i get your advice to see if there is a quicker way of deleting rows than the piece of code that i wrote.
Can i get your advice to see if there is a quicker way of deleting rows than the piece of code that i wrote.
Sheets("sheet1").Select
Rows("1:1").Select
Selection.AutoFilter
ActiveSheet.Range("$1:$158").AutoFilter Field:=4, Criteria1:="=MIXED SEL 2" _
, Operator:=xlOr, Criteria2:="=MIXED SEL 4"
ActiveSheet.Range("$1:$158").AutoFilter Field:=3, Criteria1:="B"
Rows("13:13").Select
Range(Selection, Selection.End(xlDown)).Select
Range(Selection, Selection.End(xlDown)).Select
Selection.DELETE Shift:=xlUp
Range("I154").Select
ActiveSheet.Range("$1:$150").AutoFilter Field:=4
ActiveWindow.SmallScroll Down:=45
Range("D73").Select
ActiveWindow.SmallScroll Down:=-57