PC Review


Reply
Thread Tools Rate Thread

How to select text in between two "finds"

 
 
Dennis Q. Wilson
Guest
Posts: n/a
 
      19th Jan 2006
Hi. I'm having a hard time figuring out how to do this, and hope
someone here can explain it to me.

Let's say I have a paragraph with the word "franks" somewhere near the
top and the word "beans" somewhere below it. How can I get the program
(either Word XP or Word 2003) to find and select all text in between
those two points?

Thanks to anyone who can dispel the darkness.

 
Reply With Quote
 
 
 
 
Anne Troy
Guest
Posts: n/a
 
      19th Jan 2006
Hi, Dennis! I was amazed to find out what it did....
See that little EXT at the bottom of Word's window? You must be viewing your
status bar to see it.
1. Do your find for franks and close the dialog
2. Double-click EXT
3. Do your find for beans
Voila!
************
Hope it helps!
Anne Troy
www.OfficeArticles.com

"Dennis Q. Wilson" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> Hi. I'm having a hard time figuring out how to do this, and hope
> someone here can explain it to me.
>
> Let's say I have a paragraph with the word "franks" somewhere near the
> top and the word "beans" somewhere below it. How can I get the program
> (either Word XP or Word 2003) to find and select all text in between
> those two points?
>
> Thanks to anyone who can dispel the darkness.
>



 
Reply With Quote
 
 
 
 
Dennis Q. Wilson
Guest
Posts: n/a
 
      19th Jan 2006

Anne Troy wrote:
> Hi, Dennis! I was amazed to find out what it did....
> See that little EXT at the bottom of Word's window? You must be viewing your
> status bar to see it.
> 1. Do your find for franks and close the dialog
> 2. Double-click EXT
> 3. Do your find for beans
> Voila!
> ************
> Hope it helps!
> Anne Troy


It did! Thank you very much!

 
Reply With Quote
 
Anne Troy
Guest
Posts: n/a
 
      19th Jan 2006
COOL BEANS.
************
Hope it helps!
Anne Troy
www.OfficeArticles.com

"Dennis Q. Wilson" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
>
> Anne Troy wrote:
>> Hi, Dennis! I was amazed to find out what it did....
>> See that little EXT at the bottom of Word's window? You must be viewing
>> your
>> status bar to see it.
>> 1. Do your find for franks and close the dialog
>> 2. Double-click EXT
>> 3. Do your find for beans
>> Voila!
>> ************
>> Hope it helps!
>> Anne Troy

>
> It did! Thank you very much!
>



 
Reply With Quote
 
Tony Jollans
Guest
Posts: n/a
 
      19th Jan 2006
Just for Info - F8 will do the same as clicking on EXT

Or you can search for franks*beans if you have use wildcards checked

--
Enjoy,
Tony


"Anne Troy" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> Hi, Dennis! I was amazed to find out what it did....
> See that little EXT at the bottom of Word's window? You must be viewing

your
> status bar to see it.
> 1. Do your find for franks and close the dialog
> 2. Double-click EXT
> 3. Do your find for beans
> Voila!
> ************
> Hope it helps!
> Anne Troy
> www.OfficeArticles.com
>
> "Dennis Q. Wilson" <(E-Mail Removed)> wrote in message
> news:(E-Mail Removed)...
> > Hi. I'm having a hard time figuring out how to do this, and hope
> > someone here can explain it to me.
> >
> > Let's say I have a paragraph with the word "franks" somewhere near the
> > top and the word "beans" somewhere below it. How can I get the program
> > (either Word XP or Word 2003) to find and select all text in between
> > those two points?
> >
> > Thanks to anyone who can dispel the darkness.
> >

>
>



 
Reply With Quote
 
Greg
Guest
Posts: n/a
 
      19th Jan 2006
Dennis,

Your question is answered. However, if you wanted to selected the text
between those two points excluding the terms themselves then I think
only a macro would do. Sometime like:

Sub FRTest()
Dim firstTerm As String
Dim secondTerm As String
Dim myRange As Range
Dim selRange As Range
Set myRange = ActiveDocument.Range
firstTerm = InputBox("Enter first term to find:")
secondTerm = InputBox("Enter second term to find:")
With myRange.find
.Text = firstTerm
.MatchWholeWord = True
.Execute
myRange.Collapse direction:=wdCollapseEnd
Set selRange = ActiveDocument.Range
selRange.Start = myRange.End
.Text = secondTerm
.MatchWholeWord = True
.Execute
myRange.Collapse direction:=wdCollapseStart
selRange.End = myRange.Start
selRange.Select
End With
End Sub

 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Select two records then select the next two records Ian Microsoft Access Queries 3 2nd Mar 2010 11:27 AM
Calculating number of days between two dates that fall between two other dates richard.goodger@gmail.com Microsoft Excel Misc 5 26th Oct 2005 06:18 PM
Select ... from ((Select ...)(Select...)) =?Utf-8?B?Sm9obg==?= Microsoft Access Queries 1 13th Jul 2005 12:05 AM
Select numbers between two numbers... Darin Kramer Microsoft Excel Programming 4 10th Feb 2005 03:23 PM
Find two values and select data in between =?Utf-8?B?Z2FiYQ==?= Microsoft Excel Programming 2 14th Dec 2004 08:59 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 10:59 AM.