Function SortCell(S As String) As String
Dim aList As Object, i As Long
Set aList = CreateObject("System.Collections.ArrayList")
If Len(S) > 1 Then
For i = 1 To Len(S)
aList.Add Mid(S, i, 1)
Next i
aList.Sort
SortCell = Join(aList.toarray(), "")
Else
SortCell = S
End If
End Function