Hi, I want to filter data and than paste data to multiple sheets. this code is working good till filtering but it didnt copy filtered to multiple sheets.
Code Below
filtered criteria in column K
numbers of filters 9
Code Below
filtered criteria in column K
numbers of filters 9
Code:
Sub filtered ()
Dim i As Integer
Dim xx As String
For i = 1 to 9
' 1 to 9 is rows in column K..let sayd i wana filteres table on D column
on Error Resume Next
xx = Sheets("claims").Range("K" & i).Value
'claims is sheet name with big dump of data
Range("D1").CurrentRegion.AutoFilter Field:=1, Criterial:=XX
Range :)A1).CUrrentRegion.Cells.SpecialCells (xCellTypeConstants).Copy Destination:Sheets(xx).range("A1")
Next
Err.Clear
Range("A1").CurrentRegion.AutoFilter
End Sub
Last edited by a moderator: