Application VisualBasic Script

'Maximizes the window of the topmost inspector:
Sub window()
    Application.ActiveInspector.WindowState = olMaximized
End Sub