WindowState Property (VBA Add-In Object Model)
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) |