有search干吗不用???
var
SearchText, Wrap: OleVariant;
R: Range;
..
{ if using a D5 TWordDocument component called Doc -
otherwise, assign a _Document variable }
Doc.ConnectTo(Word.ActiveDocument as _Document);
SearchText := 'find this';
Wrap := wdFindContinue;
R := Doc.Range;
R.Find.Execute(SearchText, EmptyParam, EmptyParam,
EmptyParam, EmptyParam, EmptyParam,
EmptyParam, Wrap, EmptyParam,
EmptyParam, EmptyParam, EmptyParam,
EmptyParam, EmptyParam, EmptyParam);
{ R will now be the range of the found text, so... }
Memo1.Text := R.Paragraphs.Item(1).Range.Text;