clear selection

B

Beans

Could someone please help with the code on how to clear the current
selection. Not delete the contents, simply un-highlight what is currently
selected.

Thanks
Chad
 
T

Tony Jollans

Selection.Collapse wdcollapseEnd

will do it, and leave the cursor (insertion point) at the end of the
selectiion

Selection.Collapse wdcollapseStart

will do the same, but leave the cursor (insertion point) at the start of the
selectiion
 
J

Jay Freedman

Beans said:
Could someone please help with the code on how to clear the current
selection. Not delete the contents, simply un-highlight what is
currently selected.

Thanks
Chad

Either

Selection.Collapse Direction:=wdCollapseStart

or

Selection.Collapse Direction:=wdCollapseEnd

depending on where you want the insertion point to land.

--
Regards,
Jay Freedman
Microsoft Word MVP
Email cannot be acknowledged; please post all follow-ups to the newsgroup so
all may benefit.
 

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