Microsoft KB Archive/122845

= WD6x: Starting Word for the Macintosh with Maximized Document =

Article ID: 122845

Article Last Modified on 12/14/1999

-

APPLIES TO


 * Microsoft Word 6.0 for Macintosh

-



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:

 From the Tools menu, choose Macro. In the Macro Name text box, type AutoExec, AutoOpen , or AutoNew . Choose the Create button.  Type the DocMaximize command between the Sub MAIN and End Sub lines as it appears below: Sub MAIN DocMaximize End Sub  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.

Additional query words: 6.0 macword maximize macro auto automatic word6

Keywords: KB122845

-

[mailto:TECHNET@MICROSOFT.COM Send feedback to Microsoft]

© Microsoft Corporation. All rights reserved.