• Hi All

    Please note that at the Chandoo.org Forums there is Zero Tolerance to Spam

    Post Spam and you Will Be Deleted as a User

    Hui...

  • When starting a new post, to receive a quicker and more targeted answer, Please include a sample file in the initial post.

VBA to copy filtered data to multiple sheets

ALAMZEB

Member
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:
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:
Back
Top