Sub TaggaTaggaTagga()
With ActiveSheet
.AutoFilterMode = False
With Intersect(.Columns("AB"), .UsedRange)
.AutoFilter Field:=1, Criteria1:="=NYA"
.SpecialCells(xlCellTypeVisible).FormulaR1C1 = "=R[1]C[5]"
.AutoFilter
.Value = .Value
End With
End With
End Sub
Code:Sub TaggaTaggaTagga() With ActiveSheet .AutoFilterMode = False With Intersect(.Columns("AB"), .UsedRange) .AutoFilter Field:=1, Criteria1:="=NYA" .SpecialCells(xlCellTypeVisible).FormulaR1C1 = "=R[1]C[5]" .AutoFilter .Value = .Value End With End With End Sub
Sub TaggaTaggaTagga()
With ActiveSheet
.AutoFilterMode = False
With Intersect(.Columns("AB:AG"), .UsedRange)
.AutoFilter Field:=1, Criteria1:="=NYA"
.AutoFilter Field:=6, Criteria1:="<>"
.Resize( ,1).SpecialCells(xlCellTypeVisible).FormulaR1C1 = "=R[1]C[5]"
.AutoFilter
.Value = .Value
End With
End With
End Sub
Sub TaggaTaggaTagga()
With ActiveSheet
.AutoFilterMode = False
With Intersect(.Columns("AB"), .UsedRange)
.AutoFilter Field:=1, Criteria1:="=NYA"
.SpecialCells(xlCellTypeVisible).FormulaR1C1 = "=IF(LEN(R[1]C[5]),R[1]C[5],"")"
.AutoFilter
.Value = .Value
End With
End With
End Sub