Positioning the cursor when using "Find"

J

Joanne

When doing a find operation is it possible to position the cursor at the
beginning of the found text? In WordPerfect there was an option to put the
cursor at the beginning or end of the text. I need to test if a found number
is at the first position on a line.
Thanks very much for your help.

Joanne
 
C

Cindy M -WordMVP-

Hi =?Utf-8?B?Sm9hbm5l?=,
When doing a find operation is it possible to position the cursor at the
beginning of the found text? In WordPerfect there was an option to put the
cursor at the beginning or end of the text. I need to test if a found number
is at the first position on a line.
I'm going to assume you recorded a macro to get the basic "Find" code you're
working with. In this case, then, when the text is found, it's selected, right?

So, put this line in after all the Find stuff, and it should work:

Selection.Collapse wdCollapseStart

Cindy Meister
INTER-Solutions, Switzerland
http://homepage.swissonline.ch/cindymeister (last update Jun 8 2004)
http://www.word.mvps.org

This reply is posted in the Newsgroup; please post any follow question or reply
in the newsgroup and not by e-mail :)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top