Hi I need to paste only the values but when I add it to my code it always gives me an error.
With Rng
.AutoFilter , field:=1, Criteria1:=STBT_Group_1.Value
.Offset(1).SpecialCells(xlCellTypeVisible).Range(Cells(i, "A"), Cells(LASTROW, "D")).Copy _
Sheets("Sheet2").Range("A" & Rows.Count).End(xlUp).Offset(1)
.AutoFilter
End With
With Rng
.AutoFilter , field:=1, Criteria1:=STBT_Group_1.Value
.Offset(1).SpecialCells(xlCellTypeVisible).Range(Cells(i, "A"), Cells(LASTROW, "D")).Copy _
Sheets("Sheet2").Range("A" & Rows.Count).End(xlUp).Offset(1)
.AutoFilter
End With