I don't understand how you want to apply this in your initial question.
UDF
Use in cell like
=RemoveDup(F3,"\")
In a Standard module
UDF
Use in cell like
=RemoveDup(F3,"\")
In a Standard module
Code:
Function RemoveDup(ByVal txt As String, ByVal delim As String) As String
Dim e
With CreateObject("Scripting.Dictionary")
.CompareMode = 1
For Each e In Split(txt, delim)
.Item(e) = Empty
Next
RemoveDup = Join(.keys, delim)
End With
End Function