Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
Function NoDups(s As String)
Dim ary, bNoMatch As Boolean
ary = Split(s, " ")
x = ""
For i = LBound(ary) To UBound(ary)
bNoMatch = True
For j = i + 1 To UBound(ary)
If ary(i) = ary(j) Then
bNoMatch = False
Exit For
End If
Next
If bNoMatch Then x = x & " " & ary(i)
Next
NoDups = x
End Function
For Each n in Split(SampleStr)
If InStr(NewStr, n & " ") = 0 then Newstr = Newstr & n & " "
Next
NewStr = Trim(NewStr)
For Each n in Split(SampleStr)
If n >= 3 And n <= 5 Then n = 2
Newstr = Newstr & n & " "
Next
NewStr = Trim(NewStr)
For i = 3 to 5
NewStr = Trim(Replace(" " & NewStr & " "," " & i & " "," " & 2 & " "))
Next