Then use this code!
Sub steffen()
uRows = Application.WorksheetFunction.CountA(Sheets(1).Range("F1:F60000"))
Dim sheetArr() As String
Dim wSheet As Worksheet
Application.DisplayAlerts = False
For i = Sheets.Count To 2 Step -1
Sheets(i).Delete
Next i
Application.DisplayAlerts = True
For Each cell In Range("F2:F" & uRows)
On Error Resume Next
Set wSheet = Sheets(Format(cell, "mmm-yyyy"))
If wSheet Is Nothing Then 'Doesn't exist
Sheets.Add After:=Sheets(Sheets.Count)
ActiveSheet.Name = Format(cell, "mmm-yyyy")
Sheets(1).Range("A1").EntireRow.Copy
ActiveSheet.Range("A1").PasteSpecial
cell.EntireRow.Copy
With Sheets(Format(cell, "mmm-yyyy"))
.Range("A60000").End(xlUp).Offset(1, 0).PasteSpecial
End With
Else
cell.EntireRow.Copy
With Sheets(Format(cell, "mmm-yyyy"))
.Range("A60000").End(xlUp).Offset(1, 0).PasteSpecial
End With
End If
Next cell
End Sub
Steffen Thomsen
Bookmarks