unselect a word

H

Helmut Weber

Hi Sarah
i think range.select highlights a word?
how would you unselect a word?

? :-/
range.select selects the range,
very different from highlighting.
selection.words(1).select
selects the first word in the range.
Selection.collapse reduces the selection to a length of 1.
Not so with selection.range:

Selection.Collapse
MsgBox Len(Selection.Text)
MsgBox Len(Selection.Range.Text)

Greetings from Bavaria, Germany

Helmut Weber, MVP
"red.sys" & chr(64) & "t-online.de"
Word XP, Win 98
http://word.mvps.org/
 

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