Arrange All/Window sizing

G

Guest

I see the following behavior when I try to adjust the window sizes in Word
after choosing Arrange All. To put the documents side-by-side rather than
top/bottom, change one window's height and width. The second window doesn't
cooperate. If I select the corner handle, it only allows a change in width.
If I attempt to resize from the bottom, I can't even get the sizing arrow to
display.

Eventually I stumbled upon maximizing the second window then restoring it,
and only then would Word allow me to resize the height. Is there a known
cause for this problem, or some way to avoid it altogether. Not really sure
my workaround will consistently work.

Thanks for any help anyone can offer.
 
G

Guest

Thanks. That's interesting stuff. Quick question, though, if you don't mind.
I'm familiar with Dim to declare variables. However, what's ReDim, and does
it always have to be used in conjunction with Preserve?
 
J

Jay Freedman

ReDim changes the size of an array. In the macro in that article, it's
used to increase the array by one element for each non-minimized
window that exists at the time the macro runs. Since the number of
non-minimized windows can be different for each run of the macro,
there's no way to set the size of the array to a constant in a Dim
statement.

The optional Preserve keyword tells VBA to keep the current contents
of the array when changing its size. If the Preserve is omitted, the
array is emptied (set to blanks or zeros, depending on its data type)
during the resizing.
 

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