Sub PopulateCol_G()
With Range("G2:G" & Cells(Rows.Count, 1).End(xlUp).Row)
.Formula = "=IF(B2="""","""",TEXT(B2,""mmm""))"
.Value = .Value
End With
End Sub
Formula:
=IF(B2="","",TEXT(B2,"mmm"))
For interest sake...Another version of your code...
Sub sintekJ3v16()
Dim Data, Dict As Object, i As Long
Set Dict = CreateObject("Scripting.Dictionary")
With Sheet1.Cells(1).CurrentRegion
Data = .Value
For i = 2 To UBound(Data, 1)
If Not Dict.Exists(Data(i, 6)) Then
Dict.Add Data(i, 6), 1
If Evaluate("ISREF('" & Data(i, 6) & "'!A1)") = False Then
Sheets.Add(, Sheets(Sheets.Count)).Name = Data(i, 6)
Else
Sheets(Data(i, 6)).UsedRange.Delete
End If
End If
.AutoFilter 6, Data(i, 6)
Union(.Columns("A"), .Columns("D"), .Columns("F")).Copy Sheets(Data(i, 6)).Range("A1")
.AutoFilter
Next i
End With
End Sub
Bookmarks