none
Is there an event for active page change in MS word RRS feed

  • Question

  • Is there an event that fires when the active page of a document changes?

    For examples when I scroll down from page 1 to page 2, is there an event that I can use to be notified?


    selam alazar simachew

    Friday, October 16, 2015 9:57 AM

Answers

  • No, Word has no such event. As far as Word is concerned, text flow is dynamic and constant. So there are no events when text breaks to a new line or to a new page, or when the insertion point moves to a new line or a new page.

    Closest you can get is the WindowSelectionChange event which fires when the user moves the selection within the text, such as using the mouse or the arrow keys. You can store the current page each time the event fires, then compare the stored value with the new value the next time the event fires.


    Cindy Meister, Office Developer/Word MVP, <a href="http://blogs.msmvps.com/wordmeister"> my blog</a>

    Friday, October 16, 2015 6:29 PM
    Moderator