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
Howard Kaikow - 23 Feb 2005 19:53 GMT
Look at Word's Find and Range objects.
Also, take a look at Steve Roman's book Writing Word Macros.
See http://www.standards.com/index.html?WordVBABooks

Signature
http://www.standards.com/; See Howard Kaikow's web site.
> Hi
> I'd like to get the text between two words, say <START> and <FINISH>,
[quoted text clipped - 13 lines]
> regards
> Paul
paul robinson - 24 Feb 2005 09:42 GMT
Hi Howard
Thanks for that.
I'm used to the Excel NewsGroup....quiet in here isn't it....
Paul