I am searching through a word document using .Find method. After I find the
particular text I am looking for I want to select the line which contains
this text.
Is is possible to do so ? Please help....
Thanks,
Akhilesh.
Select the found text using the Select method (if you haven't already been
applying the Find method to the Selection). Then use the following line of
code to select the entire line
ActiveDocument.Bookmarks("\Line").Range.Select
There are a number of predefined bookmarks in Word which move & change to
mark text relative to the selection. \Line is one of them.
Regards
Jonathan West - Word MVP
MultiLinker - Automated generation of hyperlinks in Word
Conversion to PDF & HTML
http://www.multilinker.com
Word FAQs at http://www.multilinker.com/wordfaq
Please post any follow-up in the newsgroup. I do not reply to Word questions
by email
Akhilesh Agarwal wrote in message <#o83AdFB$GA.75@cppssbbsa04>...
In article <#o83AdFB$GA.75@cppssbbsa04>, "Akhilesh Agarwal"