Try this code
Sub SelectRange()
Dim lCharpos1 As Long
Dim lCharpos2 As Long
ActiveDocument.Bookmarks("\StartOfDoc").Select
Selection.Find.Execute "word1"
lCharpos1 = Selection.Range.Start
Selection.Collapse
Selection.Find.Execute "word2"
lCharpos2 = Selection.Range.End
ActiveDocument.Range(Start:=lCharpos1, End:=lCharpos2).Select
Selection.Range.Copy
End Sub
v-m
|