Microsoft KB Archive/66609

Macro to Automatically Execute the File Open Command PSS ID Number: Q66609 Article last modified on 07-14-1994

1.00 1.10 1.10a 2.00 2.00a 2.00a-CD 2.00b 2.00c

WINDOWS

Summary:

The following AutoExec macro will cause Microsoft Word for Windows to pause on the File Open dialog box when the macro is executed:

Sub MAIN Dim dlg As FileOpen GetCurValues dlg On Error Goto Finish Dialog dlg Super FileOpen dlg Finish: End Sub

This macro must be named AutoExec so the macro will be called automatically when Word for Windows is started. It is then possible to choose an existing document to be edited instead of beginning a new document, which is the Word for Windows default. This macro is most useful when your primary use of Word for Windows is editing existing documents, rather than creating new documents.

To start a new document from the File Open dialog box, choose Cancel.

Additional reference words: w4wmacro 1.00 1.10 1.10a 2.00 2.00a winword 2.00a-CD 2.00b 2.00c

=
================================================================

Copyright Microsoft Corporation 1994.