Microsoft KB Archive/82088

{|
 * width="100%"|

How to Start Word for Windows in a Maximized Window

 * }

Q82088

-

The information in this article applies to:


 * Microsoft Word for Windows, versions 1.0, 1.1, 1.1a, 2.0, 2.0a, 2.0a-CD, 2.0b, 2.0c, 6.0, 6.0a, 6.0c

-

To start Microsoft Word for Windows in a maximized window, create the following WordBasic macro, and name it &quot;autoexec&quot;:

 Sub Main If AppMaximize = 0 Then AppMaximize End Sub The above macro when named Autoexec will force Word for Windows to be maximized on startup. The IF statement uses the AppMaximize function to check the state of WinWord before executing the AppMaximize statement. The AppMaximize statement restores the application window if the application window is already maximized.

For more information on AppMaximize and automatic macros, search for &quot;WordBasic Programming Language,&quot; &quot;AppMaximize,&quot; and &quot;auto macros&quot; using the Help menu in Word for Windows version 2.0.