Returning to the same place in a document--

  • What VBA code (or other technique) is necessary to return to the same place in a document when it is opened? In my case, I have several lines of introductory/explanatory remarks, followed by an 'input' table. What I would like to do is have the cursor placed at the first cell in the table every time the document is opened. I know this has probably been discussed before, and is probably trivial, but your help is appreciated. (BTW, I'm using Word 97).


    Thanks, Tom

  • Hi Tom,


    1. Place following code in the ThisDocument-module:


    Option Explicit


    Private Sub Document_Open()
    With Application
    .ScreenUpdating = False
    ActiveDocument.Bookmarks("Start").Select
    .ScreenUpdating = True
    End With
    End Sub


    2. Create a bookmark - Start - where You want it.


    3. Save & Close document and the re-open it.


    4. Done!

Participate now!

Don’t have an account yet? Register yourself now and be a part of our community!