Macro to grab "inbetween words" from a text
That would require some type of criteria as to where to begin the grab
and many characters to include in the grab.
Thulasiram wrote:
On Sep 5, 9:12 am, JW wrote:
Need more info in order to really help. What is the criteria for the
grabbed text? If all you want is "plane" out of that file you listed,
you could use the Mid function.
These examples assume that the text is in A12.
=MID(A12,15,5)
Or
=RIGHT(SUBSTITUTE(A12,"\",""),5)
Thulasiram wrote:
Group members and MVP's,
I have a text in range("A1"). Let us assume that the text is C:
\012245\Aeroplane\
I would like to have a macro that grabs the word "plane" from the text
C:\012245\Aeroplane\
Recording a macro doesnt seem to help in this case.
Thanks!
-T
Hi Jeff,
The code you have given counts 15 characters from "left to right" and
then takes 5 characters (plane). How to tweak the code if I have to
make it from "right to left" and take the same 5 characters (plane)?
Please help.. Thanks!
|