none
Scrolling RRS feed

  • Question

  • After we execute some of our macros the text where the cursor is placed is sometimes off the bottom of the screen. Is there a programmatic way of forcing Word to scroll so that the cursor is in the centre of the screen?

    Tuesday, October 21, 2014 3:13 PM

Answers

  • Hello,

    The Word object model provides the ScrollIntoView method of the Window class which scrolls through the document window so the specified range or shape is displayed in the document window. It looks like this is exactly what you are looking for.

    Tuesday, October 21, 2014 3:18 PM

All replies

  • Hello,

    The Word object model provides the ScrollIntoView method of the Window class which scrolls through the document window so the specified range or shape is displayed in the document window. It looks like this is exactly what you are looking for.

    Tuesday, October 21, 2014 3:18 PM
  • Thanks Eugene, that did the trick
    Wednesday, October 22, 2014 9:41 AM