Re: How can I locate a paragraph using the .find method ?

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance

From: Jonathan West (jwest_at_mvps.org)
Date: 02/15/05


Date: Tue, 15 Feb 2005 17:47:21 -0000


"Jamie Carper" <JamieCarper@discussions.microsoft.com> wrote in message
news:50A1AA8E-A7B0-4B50-B5E2-41FBF297E0D1@microsoft.com...
> The following code tells me if the searched text exists:
>
> Dim FoundText as Boolean
>
> With ActiveDocument.Range.Find
> FoundText = .Execute("The text I am searching for")
> End With
>
> How can I extract the exact paragraph object where this text is found?
>
> I do not wish to manipulate the text, merely goto the location as if this
> were a bookmark.

Do this

ActiveDocument.Range.Select
Selection.Find.Execute "The text I am searching for"

-- 
Regards
Jonathan West - Word MVP
www.intelligentdocuments.co.uk
Please reply to the newsgroup


Relevant Pages

  • Re: Extracting in-stream dataset (i.e. SYSIN) from SMF
    ... The problem is that i want to extract the SYSIN info from jobs that were ... :>know where to start searching. ... For IBM-MAIN subscribe / signoff / archive access instructions, ... send email to listserv@xxxxxxxxxxx with the message: GET IBM-MAIN INFO ...
    (bit.listserv.ibm-main)
  • Re: how to extract required region from infrared image?
    ... Can I also use horizontal and vertical projection to extract that face region? ... not searching the newsgroup for the blobMeasurements code I posted ... I can find my required region from that. ...
    (comp.soft-sys.matlab)
  • Re: how to extract required region from infrared image?
    ... Can I also use horizontal and vertical projection to extract that face region? ... not searching the newsgroup for the blobMeasurements code I posted ... I can find my required region from that. ...
    (comp.soft-sys.matlab)
  • Re: how to extract required region from infrared image?
    ... Can I also use horizontal and vertical projection to extract that face region? ... not searching the newsgroup for the blobMeasurements code I posted ... I can find my required region from that. ...
    (comp.soft-sys.matlab)
  • Re: how to extract required region from infrared image?
    ... Can I also use horizontal and vertical projection to extract that face region? ... not searching the newsgroup for the blobMeasurements code I posted ... I can find my required region from that. ...
    (comp.soft-sys.matlab)