My mistake
![]()
If Left(Snippets(i), 1) <> "<" Then
My mistake
![]()
If Left(Snippets(i), 1) <> "<" Then
_
...How to Cross-post politely...
..Wrap code by selecting the code and clicking the # or read this. Thank you.
thanks again! error is gone![]()
but, the returned value is now #NAME? or 0?
input string isand formula used is:<randomstring testing number 444 <randomstring user number 8394 <!code… activated accountthe code i am using:=RemoveBrackets(A2)
![]()
Function RemoveBrackets(aString As String) As String Dim i As Long, Snippets As Variant Snippets = Split(aString, " ") For i = 0 To UBound(Snippets) Step 2 If Left(Snippets(i), 1) <> "<" Then RemoveBrackets = RemoveBrackets & Snippets(i) End If Next i End Function
i tried to change the code some more... but it's not working out. arrrrr, ahahah, this coding stuff is not as easy as it seems.
is there a find/replace string that can do this?
for example, is there a wildcard character that can be used to represent the characters within the string?
e.g.) "<*******(space)"
You might try this
That find/Replace might work too.![]()
Function RemoveBrackets(aString As String) As String Dim i As Long, Snippets As Variant Snippets = Split(aString, " ") For i = 0 To UBound(Snippets) If Left(Snippets(i), 1) <> "<" Then RemoveBrackets = RemoveBrackets & Snippets(i) & " " End If Next i RemoveBrackets = Trim(RemoveBrackets) End Function
the code above... WORKS!
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks