johnmerlino
Board Regular
- Joined
- Sep 21, 2010
- Messages
- 94
Hey all,
This function:
Mid( text, start_position, number_of_characters )
won't help if I want to extract between two delimiters like an & and &W:
abc def & abc xyz &W abc
For example:
pos = InStr(Range("A" & i), " &W ")
pos2 = InStr(Range("A" & i), " & ")
main_name = Mid(Range("A" & i).Value, pos2 + 3, pos)
will pull:
abc xyz &W abc
not:
abc xyz
because pos is not treated as end delimiter but rather the length of characters to pull, which in this case will be 18.
So I wonder what function would be suitable to extract:
abc xyz
Thanks for response
This function:
Mid( text, start_position, number_of_characters )
won't help if I want to extract between two delimiters like an & and &W:
abc def & abc xyz &W abc
For example:
pos = InStr(Range("A" & i), " &W ")
pos2 = InStr(Range("A" & i), " & ")
main_name = Mid(Range("A" & i).Value, pos2 + 3, pos)
will pull:
abc xyz &W abc
not:
abc xyz
because pos is not treated as end delimiter but rather the length of characters to pull, which in this case will be 18.
So I wonder what function would be suitable to extract:
abc xyz
Thanks for response