Get the text between two words

P

paul robinson

Hi
I'd like to get the text between two words, say <START> and <FINISH>,
and assign that to a variable.
e.g.
<START>
This is my text.
<FINISH>

should assign "This is my text." to the string variable mytext, say.

If I had a lot of <START>, <FINISH> blocks in one file, how would I
loop through them?

I've used VBA in Excel quite a bit, but not in Word.

regards
Paul
 
P

paul robinson

Hi Howard
Thanks for that.
I'm used to the Excel NewsGroup....quiet in here isn't it....

Paul
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top