Simple question: How to unselect from within code

M

Mystery Man

Within code, I have a piece of text that has been selected, eg
range.select(); Now that I have finished processing this selected
block, I want to unselect this and go to the end of the selected
block.

How do I do this this within code?

Note that I dont want to delete the selected text
 
C

Cindy Meister -WordMVP-

Hi Mystery,
Within code, I have a piece of text that has been selected, eg
range.select(); Now that I have finished processing this selected
block, I want to unselect this and go to the end of the selected
block.

How do I do this this within code?
Selection.Collapse wdCollapseEnd (or wdCollapseStart)

Cindy Meister
INTER-Solutions, Switzerland
http://homepage.swissonline.ch/cindymeister (last update Jan 24
2003)
http://www.mvps.org/word

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