Window.WindowState (Excel)

Returns or sets the state of the window. Possible return values are xlMaximized - Maximized, xlMinimized - Minimized, xlNormal - Normal.


ActiveWindow.WindowState = xlMaximized