No sample file so untested...
Sub J3v16()
Dim Data, Dict As Object, Rng As Range, i As Long
Set Dict = CreateObject("Scripting.Dictionary")
With Sheets("All Data")
With .Range("A3:AP" & .Cells(.Rows.Count, 1).End(xlUp).Row)
Data = .Value
For i = 2 To UBound(Data)
If Data(i, 1) <> "" Then
If Not Dict.exists(Data(i, 1)) Then
Dict.Add Data(i, 1), "'"
.AutoFilter 1, Data(i, 1)
Set Rng = .SpecialCells(12)
.AutoFilter
If Evaluate("ISREF('" & "" & Data(i, 1) & "" & "'!A1)") = True Then
Application.DisplayAlerts = False
Sheets("" & Data(i, 1) & "").Delete
Application.DisplayAlerts = True
End If
With Sheets.Add(, Sheets(Sheets.Count))
.Name = Data(i, 1)
Rng.Copy .Cells(1)
End With
End If
End If
Next i
End With
End With
End Sub
Bookmarks