Microsoft KB Archive/95694

= Returning to the Last Editing Position When Opening Files =

Article ID: 95694

Article Last Modified on 1/18/2007

-

APPLIES TO


 * Microsoft Word 2.0 Standard Edition
 * Microsoft Word 2.0a
 * Microsoft Office Word 2003
 * Microsoft Word 2.0c
 * Microsoft Word 6.0 Standard Edition
 * Microsoft Word 6.0a
 * Microsoft Word 6.0c
 * Microsoft Word 95 Standard Edition
 * Microsoft Word 95a
 * Microsoft Word 97 Standard Edition
 * Microsoft Word 6.0 for Macintosh
 * Microsoft Word 6.01 for Macintosh
 * Microsoft Word 6.01 for Macintosh

-



This article was previously published under Q95694



SYMPTOMS
Microsoft Word does not retain the location of your insertion point when you save and close a document.



CAUSE
This occurs by product design.



Word 7.0, 97
Press SHIFT+F5 after you open the document to move the cursor to its previous location.

Word 2.0, 6.0
The following AutoOpen macro can be used to return your insertion point to its last editing position when a document is opened: Sub MAIN If ExistingBookmark(&quot;\PrevSel1&quot;) Then EditGoTo &quot;\PrevSel1&quot; End Sub To create the above macro:

 From the Tools menu, choose Macro. From the Show box, select the Global Macro option. Type AutoOpen for the macro name and choose the Edit button.  Type the following macro line between the Sub MAIN and End Sub lines: If ExistingBookmark(&quot;\PrevSel1&quot;) Then EditGoTo &quot;\PrevSel1&quot;  From the File menu, choose Close. Choose the Yes button when prompted to save changes to Global:AutoOpen. From the File menu, choose Save All. When prompted, choose to save global glossary and command changes.</li></ol>

<div class="moreinformation_section">

MORE INFORMATION
If you want to return to a specific location each time you open a document, insert a bookmark at that location and then record an AutoNew macro that goes to that bookmark.

<div class="references_section">