Skip to content

Automatically open the last Word document you edited

If you frequently find yourself wanting to edit the same document you were using in your last Word session, you can create a shortcut which does just this.

If you frequently find yourself wanting to edit the same document you were using in your last Word session, you can create a shortcut which does just this, using a command-line switch.

Here’s how:

1. Right-click an empty spot on your desktop and choose New -> Shortcut from the pop-up menu.

2. Click the Browse button and locate the winword.exe program. If you installed Word in the default folder and you’re using Word 2003, you’ll find it in C:Program FilesMicrosoft OfficeOffice11; if you’re using Word 2007, it’s in C:Program FilesMicrosoft OfficeOffice12. Click winword.exe when you locate it and then click Open. Windows will automatically fill the location box with the full pathname surrounded by quotation marks.

3. Click within the location box and, after the closing quotation marks, add a space followed by /mfile1, then click Next.

4. Give your shortcut a name, such as Last Word, and click Finish.

5. If you like, drag your newly created shortcut onto the Quick Launch bar to the right of the Start button to make it easier to use.

I like to place both shortcuts side by side in the Quick Launch bar: the normal Word shortcut and my Last Word shortcut. That way, I can choose whether to launch Word with a blank document or with the last-edited document pre-loaded. I distinguish between the two by altering the icon for the Last Word shortcut:

1. Right-click the Last Word shortcut and select Properties from the pop-up menu.

2. On the Shortcut tab, click Change Icon.

3. Click one of the alternative icons and click OK.

Note that it’s also possible to open the last-edited document using a macro, but this method has the drawback of making Word always launch with that document loaded. If that’s what you want to do, here’s how to create the macro:

1. Press Alt+F8 to display the Macros dialog.

2. Type AutoExec in the Macro Name box and click Create. The Visual Basic Editor will load.

3. In the code window on the right, you’ll see that Word has automatically created a code stub for the AutoExec macro. Between the Sub AutoExec() and End Sub statements, on a line by itself, type:

RecentFiles(1).Open

4. Close the Visual Basic editor.

The commands you stick in a macro named AutoExec run automatically whenever you launch Microsoft Word, so creating this AutoExec macro will open the most recently edited document every time you launch Word.

About this author

Office 2024 - all you need to know. Facts & prices for the new Microsoft Office. Do you need it?

Microsoft Office upcoming support end date checklist.