Application.WindowState (Excel)

Returns or sets the state of the window.

xlMaximized - Maximized, xlMinimized - Minimized, xlNormal - Normal.
Application.WindowState = xlMaximized
Application.WindowState procedure builder