Window.WindowState procedure builder

Window.WindowState (Excel)

Returns or sets the state of the window.

xlMaximized - Maximized, xlMinimized - Minimized, xlNormal - Normal.
ActiveWindow.WindowState = xlMaximized