Forum Discussion
hlalumiere
14 years agoRegular Contributor
You don't really need to count them in this case, this is the reason the For...Each construct was created. Just replace your "For i = 0 To XXX" to "For Each strElement In Substring".
If you did need to count the elements you would use the UBound function: "For i = 0 To UBound(Substring)"
If you did need to count the elements you would use the UBound function: "For i = 0 To UBound(Substring)"