WindowState Property (VBA Add-In Object Model)

This page is specific to the Visual Basic for Applications (VBA) Language Reference for Office 2010.

Returns or sets a numeric value specifying the visual state of the window. Read/write.

Settings

The WindowState property returns or sets the following values:

Constant

Value

Description

vbext_ws_Normal

0

(Default) Normal

vbext_ws_Minimize

1

Minimized (minimized to an icon)

vbext_ws_Maximize

2

Maximized (enlarged to maximum size)