Results 1 to 3 of 3
  1. #1
    2 Star Lounger
    Join Date
    Jan 2001
    Posts
    159
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Deselect Text (XP)

    I'm writing a macro and can't remember the keyboard key strokes to deselect text. Any help would be appreciated!!

  2. #2
    Platinum Lounger
    Join Date
    Nov 2001
    Location
    Melbourne, Victoria, Australia
    Posts
    5,016
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Deselect Text (XP)

    The following will deselect text and leave to cursor to the right of the selection:

    Selection.MoveRight Unit:=wdCharacter, Count:=1

    Alan

  3. #3
    Plutonium Lounger
    Join Date
    Mar 2002
    Posts
    84,353
    Thanks
    0
    Thanked 29 Times in 29 Posts

    Re: Deselect Text (XP)

    Just to show that there is more than one way to skin a cat, either of the following will also work:
    Selection.Collapse wdCollapseStart
    or
    Selection.Collapse wdCollapseEnd

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •