At first I thought that might be the case, but I know of no mechanism
whereby the cursor should move while the document remains open, however it
does always revert to the start when the document is closed and re-opened.
As for the bookmark, bookmark names are unique, so using this method there
would only ever be the one bookmark. The macro repositions it when run.
If you wish to use this method transparently, as I suggested earlier, you
would need to incorporate the line to place the bookmark in the file save
and saveas routines thus
Sub FileSave()
On Error Resume Next
ActiveDocument.Bookmarks.Add Range:=Selection.Range, name:="OpenAt"
ActiveDocument.Save
End Sub
Sub FileSaveAs()
On Error Resume Next
ActiveDocument.Bookmarks.Add Range:=Selection.Range, name:="OpenAt"
Dialogs(wdDialogFileSaveAs).Show
ActiveWindow.Caption = ActiveDocument.FullName
End Sub
The Autoopen macro remains the same - though I personally have a couple of
extra lines in the one I use -
Sub AutoOpen()
ActiveWindow.Caption = ActiveDocument.FullName
ActiveWindow.View.TableGridlines = True
If ActiveDocument.Bookmarks.Exists("OpenAt") = True Then
ActiveDocument.Bookmarks("OpenAt").Select
End If
End Sub
to ensure that gridlines are always displayed and to put the filename and
path in the Word title bar.
--
<>>< ><<> ><<> <>>< ><<> <>>< <>><<>
Graham Mayor - Word MVP
My web site
www.gmayor.com
<>>< ><<> ><<> <>>< ><<> <>>< <>><<>