How to Start Word for Windows in a Maximized Window

Last reviewed: July 30, 1997
Article ID: 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 "autoexec":

 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 "WordBasic Programming Language," "AppMaximize," and "auto macros" using the Help menu in Word for Windows version 2.0.

REFERENCES

"Microsoft Word for Windows and OS/2 Technical Reference," pages 97-99, 131

"Using WordBasic," by WexTech Systems and Microsoft, pages 85, 153, 175

Kbcategory: kbusage kbmacro kbhowto KBSubcategory:


Additional query words: maximize 1.0 1.1 1.1a 2.0a 1.0 1.10
word6 1.10a 2.0 2.0a winword2 winword
Version : 1.x 2.x 6.0 6.0a 6.0c
Platform : WINDOWS


THE INFORMATION PROVIDED IN THE MICROSOFT KNOWLEDGE BASE IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND. MICROSOFT DISCLAIMS ALL WARRANTIES, EITHER EXPRESS OR IMPLIED, INCLUDING THE WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. IN NO EVENT SHALL MICROSOFT CORPORATION OR ITS SUPPLIERS BE LIABLE FOR ANY DAMAGES WHATSOEVER INCLUDING DIRECT, INDIRECT, INCIDENTAL, CONSEQUENTIAL, LOSS OF BUSINESS PROFITS OR SPECIAL DAMAGES, EVEN IF MICROSOFT CORPORATION OR ITS SUPPLIERS HAVE BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. SOME STATES DO NOT ALLOW THE EXCLUSION OR LIMITATION OF LIABILITY FOR CONSEQUENTIAL OR INCIDENTAL DAMAGES SO THE FOREGOING LIMITATION MAY NOT APPLY.

Last reviewed: July 30, 1997
© 1998 Microsoft Corporation. All rights reserved. Terms of Use.