Group:  Microsoft Word ยป microsoft.public.word.vba.beginners
Thread: Selecting All Text Between Two Strings

DotNetBag
.NET Development Newsgroups

HTVi
TV Discussion Newsgroups

Our Hot Pick: Rising Antivirus 2006 - Certified by TUV & Checkmark! Get 10% discount by entering this coupon code: ONDISCOUNT10
Rising Antivirus 2006

Selecting All Text Between Two Strings
hziemba <hziemba.2er72m[ at ]NoSpamPleaze.com> 26.09.2006 17:13:16
I want to find all instances of text that begin with [B]-[/B Wrote: > , end with *QUOTE]*. This would include the beginning and ending > strings, and all text in between (including any tabs, line breaks, para > marks, etc.). Does this require a macro? If so, what would such a > macro look like?
[Quoted Text]
>
> Thanks in advance. -- hziemba ------------------------------------------------------------------------ hziemba's Profile: http://www.officehelp.in/member.php?userid=4425 View this thread: http://www.officehelp.in/showthread.php?t=1211083 Posted from - http://www.officehelp.in
Re: Selecting All Text Between Two Strings
"Tony Jollans" <my forename at my surname dot com> 26.09.2006 19:04:02
You should be able to do it with Find (Ctrl+F). You will need to check "Use
Wildcards" (click on More... if it's not visible) and, because asterisks and
brackets have special meanings when using wildcards you will have to
'escape' them (by preceding each with a backslash) to show you want the
characters themselves. Look for ...

\[B\]-\[/B Wrote: * \*QUOTE\]\*

--
Enjoy,
Tony

"hziemba" <hziemba.2er72m[ at ]NoSpamPleaze.com> wrote in message
news:hziemba.2er72m[ at ]NoSpamPleaze.com...
[Quoted Text]
>
> I want to find all instances of text that begin with [B]-[/B Wrote:
> > , end with *QUOTE]*. This would include the beginning and ending
> > strings, and all text in between (including any tabs, line breaks, para
> > marks, etc.). Does this require a macro? If so, what would such a
> > macro look like?
> >
> > Thanks in advance.
>
>
> --
> hziemba
> ------------------------------------------------------------------------
> hziemba's Profile: http://www.officehelp.in/member.php?userid=4425
> View this thread: http://www.officehelp.in/showthread.php?t=1211083
>
> Posted from - http://www.officehelp.in
>


Re: Selecting All Text Between Two Strings
hziemba <hziemba.2estek[ at ]NoSpamPleaze.com> 27.09.2006 14:44:22
That did the trick - thank you.

I forgot about the special meaning of the "[" and "]" in wildcard mode...and the online help leaves something to be desired. -- hziemba ------------------------------------------------------------------------ hziemba's Profile: http://www.officehelp.in/member.php?userid=4425 View this thread: http://www.officehelp.in/showthread.php?t=1211083 Posted from - http://www.officehelp.in

Home | Search | Terms | Imprint | Contact
Newsgroups Reader - provided by WiredBox.Net