Scroll active page to center of screen

J

Jack Fredrick

I have a macro that loops thru all pages of the document and does some
processing. I s it possible to force each page as it gets processed to
scroll to the center of the screen?
 
S

Stefan Blom

What does the macro do? Note that scrolling through the pages may not be
necessary, and even if it is necessary, you can choose not to update the
screen display while the macro is running.
 
J

Jack Fredrick

What does the macro do? Note that scrolling through the pages may not be
necessary, and even if it is necessary, you can choose not to update the
screen display while the macro is running.

The macro finds the difference in the length of the columns in a
document with multiple newspaper-style columns, when a difference is
detected the relevant columns are selected. I would like the macro to
scroll to the middle of the relevant page and not only bring the top
of it into the screen.
 
S

Stefan Blom

I'm not sure if it helps in this particular situation, but have you tested
the ScrollIntoView method (Window object)?

By the way, what do you do with the text when you detect different column
lengths?
 
M

Moishy

I'm not sure if it helps in this particular situation, but have you tested
the ScrollIntoView method (Window object)?

By the way, what do you do with the text when you detect different column
lengths?

Yes I've checked ScrollIntoView method but it doesn't have an option
to scroll to the middle.
I've cooked up a concoction to allow the end user to adjust all
spacing settings (lines and paragraphs) till the columns are even.
 
J

Jack Fredrick

I'm not sure if it helps in this particular situation, but have you tested
the ScrollIntoView method (Window object)?

By the way, what do you do with the text when you detect different column
lengths?

The ScrollIntoView method hasn't helped because I couldn't find a way
to scroll to the center.
When a different is detected between column lengths, the user can
adapt the spacings (line and paragraph) to minimize or eliminate the
difference.
 
S

Stefan Blom

You are aware that you can balance columns by inserting a continuous section
break at the end of the text in the right-most column?
 
M

Moishy

You are aware that you can balance columns by inserting a continuous section
break at the end of the text in the right-most column?

Yes, but in many scenarios it won't be accurate.
 
S

Stefan Blom

True. Word does its best, but balancing won't always be completely accurate. I
suspect the number of text lines must be *even* for it to work properly...
 
M

Moishy

True. Word does its best, but balancing won't always be completely accurate. I
suspect the number of text lines must be *even* for it to work properly....

Back to the original question... Is it possible to scroll to the
middle of the active page using vba?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top