M
Miles
Hi,
I need to identify the position of a character in a string
according to a set of rules. Is there a clever way of
doing this?
Example of the problem:
Consider the following string:
Test 1234567 Hello.
I would like to be able to identify the position of a
character in the string. In this case I want the first
character, not being a space, immediately following a
number. In the example this would be H and the position
would be 14.
This was just an example and the rule for which character
is needed could be different. Are there any functions in
VBA for this kind of thing or are there any clever ways of
making them yourself?
Does anybody have a good idea?
BR
/ Miles
I need to identify the position of a character in a string
according to a set of rules. Is there a clever way of
doing this?
Example of the problem:
Consider the following string:
Test 1234567 Hello.
I would like to be able to identify the position of a
character in the string. In this case I want the first
character, not being a space, immediately following a
number. In the example this would be H and the position
would be 14.
This was just an example and the rule for which character
is needed could be different. Are there any functions in
VBA for this kind of thing or are there any clever ways of
making them yourself?
Does anybody have a good idea?
BR
/ Miles