S
Scott McPhillips [MVP]
I am programmatically inserting material in a Word 2007 document, sometimes
off-screen and earlier in the doc than where the user is working. If the
insertion is long it causes an annoying scroll where the user is working.
In searching for a way to prevent this I haven't found a way to figure out
how much it scrolled (so I could unscroll it), and I also haven't found a
way to detect when the user scrolls or uses page up/down (so I could
postpone the insertion until then). Any ideas for other approaches?
One vague possibility for measuring changes in the number of lines seems to
be the Rectangles collection (2007), which provides some information about
number of lines. But the precise nature of the Rectange(s) is not clear
from the help. Are they something that Word always creates?
off-screen and earlier in the doc than where the user is working. If the
insertion is long it causes an annoying scroll where the user is working.
In searching for a way to prevent this I haven't found a way to figure out
how much it scrolled (so I could unscroll it), and I also haven't found a
way to detect when the user scrolls or uses page up/down (so I could
postpone the insertion until then). Any ideas for other approaches?
One vague possibility for measuring changes in the number of lines seems to
be the Rectangles collection (2007), which provides some information about
number of lines. But the precise nature of the Rectange(s) is not clear
from the help. Are they something that Word always creates?