View Single Post
 
Old 01-28-2016, 10:18 AM
jolivanes jolivanes is offline Windows XP Office 2007
Advanced Beginner
 
Join Date: Sep 2011
Posts: 91
jolivanes will become famous soon enough
Default

This might be faster if you have a large amount of data.
See attached

Code:
Sub With_AutoFilter()
Dim cityArr, i As Long
cityArr = Array("Dallas", "Austin")
    Application.ScreenUpdating = False
    With Range("A1").CurrentRegion
        For i = LBound(cityArr) To UBound(cityArr)
            .AutoFilter Field:=3, Criteria1:=cityArr(i)
            .Offset(1).Copy Sheets(cityArr(i)).Cells(Rows.Count, 1).End(xlUp).Offset(1)
        Next i
        .AutoFilter
    End With
    Application.ScreenUpdating = True
End Sub
Attached Files
File Type: xlsm Meggenm.xlsm (25.1 KB, 12 views)
Reply With Quote