Arrange Method

Microsoft Word Visual Basic

Arrange Method

       

Arranges all open document windows in the application workspace. Because Microsoft Word uses a Single Document Interface (SDI), this method no longer has any effect.

expression.Arrange(ArrangeStyle)

expression   An expression that returns a Windows object.

ArrangeStyle   Optional Variant. The window arrangement. Can be either of the following WdArrangeStyle constants: wdIcons or wdTiled.

Example

This example arranges all open windows so that they don't overlap.

Windows.Arrange ArrangeStyle:=wdTiled

This example minimizes all open windows and then arranges the minimized windows.

Dim windowLoop As Window

For Each windowLoop In Windows
    With windowLoop
        .Activate
        .WindowState = wdWindowStateMinimize
    End With
Next windowLoop

Windows.Arrange ArrangeStyle:=wdIcons