We help IT Professionals succeed at work.

How to end a selection in code

petePrinter
petePrinter asked
on
Hi
I sending from access to word a set of data
how do i cancel the selection after update please
pete
With appWord
    .Visible = True
    .Selection.WholeStory
    .Selection.Fields.Update

Open in new window

Comment
Watch Question

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

Author

Commented:
viralypatel

Thanks perfect answer and quick as well