Quote Originally Posted by p45cal View Post
Check out the Split and Join. I haven't looked in detail at what you want to do with the portions of the string, but this snippet will give you an idea of how you might go about it:
Code:
Sub blah()
zzz = "(((p v q) > (r v (p v q))) > ((p & s) v (r v s))) > (p & r)"
yyy = Split(zzz, ">")
For i = LBound(yyy) To UBound(yyy)
  yyy(i) = aFunctionToProcessTheSubString(yyy(i))
Next i
result = Join(yyy, " glug ")
MsgBox result
End Sub
It says there is a function not defined at this line of code:

aFunctionToProcessTheSubString(yyy(i))