Re: How can I locate a paragraph using the .find method ?
From: Jonathan West (jwest_at_mvps.org)
Date: 02/15/05
- Next message: Jamie Carper: "RE: How can I locate a paragraph using the .find method ?"
- Previous message: Dave Lett: "Re: How can I locate a paragraph using the .find method ?"
- In reply to: Jamie Carper: "How can I locate a paragraph using the .find method ?"
- Next in thread: Jamie Carper: "RE: How can I locate a paragraph using the .find method ?"
- Messages sorted by: [ date ] [ thread ]
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
- Next message: Jamie Carper: "RE: How can I locate a paragraph using the .find method ?"
- Previous message: Dave Lett: "Re: How can I locate a paragraph using the .find method ?"
- In reply to: Jamie Carper: "How can I locate a paragraph using the .find method ?"
- Next in thread: Jamie Carper: "RE: How can I locate a paragraph using the .find method ?"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|