Greg said:
Dick,
AFAIK, you can't get there from here. By using the recorder you are
only finding whatever it is that you put in the find box there is no
way that I know of to use keystrokes to define area between the found
text and the IP.
Actually you can do this. Pressing the F8 key or double-clicking the "EXT"
panel in the status bar puts you into Extend mode, where movements of the
cursor occur as if you were holding Shift down. If you then do a Find, all
the text between the original cursor position and the found text is
selected. Pressing ESC returns you to normal mode.
Recording a macro while doing this, you find that pressing F8 is equivalent
to this command
Selection.Extend
while pressing ESC is this command
Selection.EscapeKey
If you want to use this in association with a find, then you would need to
do the Find on the Selection object, not a Range.
--
Regards
Jonathan West - Word MVP
www.intelligentdocuments.co.uk
Please reply to the newsgroup
Keep your VBA code safe, sign the ClassicVB petition
www.classicvb.org