Compartilhar via


Windows.Arrange Method

Word Developer Reference

Arranges all open document windows in the application workspace.

Syntax

expression.Arrange(ArrangeStyle)

expression   A variable that represents a Windows collection.

Parameters

Name Required/Optional Data Type Description
ArrangeStyle Optional Variant The window arrangement. Can be either of the following WdArrangeStyle constants: wdIcons or wdTiled.

Remarks

Because Microsoft Word uses a Single Document Interface (SDI), this method no longer has any effect.

Example

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

Visual Basic for Applications
  Windows.Arrange ArrangeStyle:=wdTiled

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

Visual Basic for Applications
  Dim windowLoop As Window

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

Windows.Arrange ArrangeStyle:=wdIcons

See Also