Microsoft KB Archive/197849: Difference between revisions
(importing KB archive) |
m (Text replacement - """ to """) |
||
Line 59: | Line 59: | ||
To automatically open the last document edited when you start Word, use one of the following methods: | To automatically open the last document edited when you start Word, use one of the following methods: | ||
=== Method 1: Use the | === Method 1: Use the "/mFile1" Switch on the Command Line === | ||
<ol> | <ol> | ||
Line 65: | Line 65: | ||
<li>In Explorer, expand the Windows folder by clicking the plus (+) sign to the left of the Windows folder. Expand the Start Menu folder, and then click the Programs folder.</li> | <li>In Explorer, expand the Windows folder by clicking the plus (+) sign to the left of the Windows folder. Expand the Start Menu folder, and then click the Programs folder.</li> | ||
<li>In the Programs folder, right-click the shortcut for Microsoft Word, and then click Properties.</li> | <li>In the Programs folder, right-click the shortcut for Microsoft Word, and then click Properties.</li> | ||
<li>In the Properties dialog box, select the Shortcut tab. Add | <li>In the Properties dialog box, select the Shortcut tab. Add "/mFile1" (without the quotation marks) to the Target line. For example, if you are using the default Word 97 folder, change the Target line so that it looks like this: | ||
<div class="indent"> | <div class="indent"> | ||
Line 77: | Line 77: | ||
<ol> | <ol> | ||
<li>On the Tools menu, point to Macro, and then click Macros.</li> | <li>On the Tools menu, point to Macro, and then click Macros.</li> | ||
<li>In the Macros dialog box, type | <li>In the Macros dialog box, type "AutoExec" (without the quotation marks) in the Macro Name box, and then click Create.</li> | ||
<li><p>In the macro editing window, create the following macro:</p> | <li><p>In the macro editing window, create the following macro:</p> | ||
<pre class="codesample"> Sub Autoexec() | <pre class="codesample"> Sub Autoexec() |
Latest revision as of 12:46, 21 July 2020
Article ID: 197849
Article Last Modified on 1/23/2007
APPLIES TO
- Microsoft Word 97 Standard Edition
This article was previously published under Q197849
SUMMARY
The bottom of the File menu lists the most recent files that have been saved or loaded in chronological order (the last file saved or opened appears first). This list of files is commonly referred to as the Most Recently Used (MRU) list.
After you start Word, if you want to open the last file saved or opened, you can manually click the first file listed on the MRU list on the File menu, or you can have Word automatically open the file when you start Word by either modifying the Word command line or creating an AutoExec macro.
MORE INFORMATION
To automatically open the last document edited when you start Word, use one of the following methods:
Method 1: Use the "/mFile1" Switch on the Command Line
- Right-click the Start button, and then click Explore.
- In Explorer, expand the Windows folder by clicking the plus (+) sign to the left of the Windows folder. Expand the Start Menu folder, and then click the Programs folder.
- In the Programs folder, right-click the shortcut for Microsoft Word, and then click Properties.
- In the Properties dialog box, select the Shortcut tab. Add "/mFile1" (without the quotation marks) to the Target line. For example, if you are using the default Word 97 folder, change the Target line so that it looks like this:
C:\Program Files\Microsoft Office\Winword.exe /mFile1
Method 2: Use an AutoExec Macro
- On the Tools menu, point to Macro, and then click Macros.
- In the Macros dialog box, type "AutoExec" (without the quotation marks) in the Macro Name box, and then click Create.
In the macro editing window, create the following macro:
Sub Autoexec() RecentFiles(1).Open End Sub
- On the File menu, click Close and Return to Microsoft Word.
Additional query words: switch start-up parameters arguments startup
Keywords: kbhowto kbmacro KB197849