Windows.Arrange method (Word)
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.
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
See also
Support and feedback
Have questions or feedback about Office VBA or this documentation? Please see Office VBA support and feedback for guidance about the ways you can receive support and provide feedback.
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for