Results 1 to 4 of 4
  1. #1
    5 Star Lounger
    Join Date
    Mar 2001
    Location
    New York, NY
    Posts
    922
    Thanks
    2
    Thanked 12 Times in 11 Posts

    Range - Paragraph (Word 2002)

    I'm not at my own PC and am drawing a blank. How do I set a range to cover the text of a paragraph WITHOUT the paragraph mark?

    Thanks,
    Richard

  2. #2
    5 Star Lounger
    Join Date
    May 2001
    Location
    Stuttgart, Baden-W, Germany
    Posts
    931
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Range - Paragraph (Word 2002)

    Hi Richard,

    If you already have a Range for your paragraph, you can use
    <pre> .MoveEnd Unit:=wdCharacter, Count:=-1</pre>

    on it.

    <img src=/S/cheers.gif border=0 alt=cheers width=30 height=16> Klaus

  3. #3
    5 Star Lounger
    Join Date
    Mar 2001
    Location
    New York, NY
    Posts
    922
    Thanks
    2
    Thanked 12 Times in 11 Posts

    Re: Range - Paragraph (Word 2002)

    Of course. Thanks so much for reminding me. - Richard

  4. #4
    Gold Lounger
    Join Date
    Dec 2000
    Location
    New Hampshire, USA
    Posts
    3,386
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Range - Paragraph (Word 2002)

    You have to first test whether it is at end of document.
    If so, you do not move back one character.

Posting Permissions

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