Starting Word 6 for the Macintosh with Maximized Document

Last reviewed: August 5, 1997
Article ID: Q122845
The information in this article applies to:
  • Microsoft Word for Macintosh, version 6.0

SUMMARY

This article describes how to start Word with a maximized document window using the AutoExec, AutoOpen, and AutoNew macros.

MORE INFORMATION

Create the macro using the following steps:

  1. From the Tools menu, choose Macro.

  2. In the Macro Name text box, type "AutoExec," "AutoOpen," or "AutoNew" (without the quotation marks).

  3. Choose the Create button.

  4. Type the DocMaximize command between the Sub MAIN and End Sub lines as it appears below:

       Sub MAIN
       DocMaximize
       End Sub
    
    

  5. Save and close the macro.

To test the AutoExec macro, quit and restart Word. To test the AutoNew macro create a new document. To test the AutoOpen macro, open a document.

Word recognizes five automatic macros (named AutoExec, AutoClose, AutoNew, AutoOpen, and AutoExit). They are designed to run automatically as follows:

Macro name                          When it runs

AutoExec                            When you start Word
AutoNew                             Each time you create a new document
AutoOpen                            Each time you open a document
AutoClose                           Each time you close a document
AutoExit                            When you quit Word

NOTE: When you use one of the automatic macros, you must specify the special "auto" macro name.

WARNING: ANY USE BY YOU OF THE CODE PROVIDED IN THIS ARTICLE IS AT YOUR OWN RISK. Microsoft provides this macro code "as is" without warranty of any kind, either expressed or implied, including but not limited to the implied warranties of merchantability and/or fitness for a particular purpose.


KBCategory: kbusage kbmacro
KBSubcategory: kbmacroexample
Additional reference words: 6.0 macword maximize macro auto automatic
word6
Version : 6.0


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: August 5, 1997
© 1998 Microsoft Corporation. All rights reserved. Terms of Use.