How to Start Word for Windows in a Maximized Window

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

Additional query words: maximize 1.1 word6 1.10a 2.0 winword2 winword

Keywords :
Version : WINDOWS:1.0,1.1,1.1a,2.0,2.0a,2.0a-CD,2.0b,2.0c,6.0,6.0a,6.0c
Platform : WINDOWS
Issue type :


Last Reviewed: September 30, 1999
© 2000 Microsoft Corporation. All rights reserved. Terms of Use.