cryoburned
Programmer
yea so.. if I had string "Abc im cool cba" how could i get the stuff between abc and cba? I don't have direct acess to this string so I cn't edit it myself
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.
Dim str As String
Dim ary() As String
Dim i As Integer
str = "Abc im cool cba"
ary = Split(str, " ")
For i = LBound(ary) + 1 To UBound(ary) - 1
Debug.Print ary(i)
Next i
[blue]Private Function stripstring(strSource As String) As String
Dim result As Object
With CreateObject("vbscript.regexp")
.Pattern = "(?:abc)(.*)(?:cba)"
Set result = .Execute("abc im cool cba")
If result.Count Then stripstring = result(0).SubMatches(0)
End With
End Function[/blue]