Perhaps a macro like this?
Sub Filter_rang()
Sheets(1).Activate
Range("A1").CurrentRegion.AutoFilter Field:=1, Criteria1:=RGB(255, 255, 0), Operator:=xlFilterCellColor
ActiveSheet.AutoFilter.Range.Copy
Sheets("Test2").Range("A1").PasteSpecial xlPasteValues
Sheets("Test2").Range("A1").PasteSpecial xlPasteFormats
Application.CutCopyMode = False
ActiveSheet.AutoFilterMode = False
Sheets("Test2").Activate
Columns("J:J").Delete Shift:=xlToLeft
Columns("H:H").Delete Shift:=xlToLeft
End Sub
I've used both "xlPasteValues" and "xlPasteFormats" instad of just using "xlPasteAll" since there are formulas in your data and I'm not to shure if the result stays the same after copying.
Alf
Bookmarks