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

    Scroll to show text (Word XP)

    I have a range defined in my document which might be 2 or 20 paragraphs. I select that range (rng.Select), and I want to be sure that the final paragraph of that range is visible to the user. How do I adjust the scroll bar to bring that paragraph into view?

    Thanks,
    Richard Barrett

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

    Re: Scroll to show text (Word XP)

    You can use
    <code>
    ActiveWindow.ScrollIntoView Object:=Selection.Range, Start:=False
    </code>
    or
    <code>
    ActiveWindow.ScrollIntoView Object:=rng, Start:=False
    </code>
    If the second argument is True or omitted, the beginning of the range is scrolled into view, and if it is False, the end of the range is scrolled into view.

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

    Re: Scroll to show text (Word XP)

    Many thanks, as always.

    Richard

Posting Permissions

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