WD6x: Starting Word for the Macintosh with Maximized Document (122845)



The information in this article applies to:

  • Microsoft Word for the Macintosh 6.0

This article was previously published under Q122845

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.
  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.

Modification Type:MajorLast Reviewed:12/14/1999
Keywords:KB122845