brendanolear
Active Member
- Joined
- Apr 26, 2008
- Messages
- 366
Can someone advise what is wrong with the Criteria 1 segment pleas?
With ActiveSheet
lrow = .Cells(.Rows.Count, 1).End(xlUp).Row
Set rngtarget = .Range("A2:P" & lrow) 'Set begin row here
With rngtarget
.AutoFilter field:=16, Criteria1:=Not "East" Or "West"
End With
rngtarget.Columns("P").SpecialCells(xlCellTypeVisible).FormulaR1C1 = "Central"
rngtarget.AutoFilter
End With
With ActiveSheet
lrow = .Cells(.Rows.Count, 1).End(xlUp).Row
Set rngtarget = .Range("A2:P" & lrow) 'Set begin row here
With rngtarget
.AutoFilter field:=16, Criteria1:=Not "East" Or "West"
End With
rngtarget.Columns("P").SpecialCells(xlCellTypeVisible).FormulaR1C1 = "Central"
rngtarget.AutoFilter
End With