Last Cursor Location

B

Bill G

When I open a large document how can I move the cursor to the last edit
position? I have 2007 and have saved the document to 97-2003 (doc) and the
Shift+F5 still does not work.

This was posted by Jay Freedman on 06-16-09

The shortcut is exactly the same -- Shift+F5 is the shortcut for the GoBack
command.

But in Word 2007's new format (.docx), this won't work immediately after
opening
the document to return to the last edit from a previous session. Microsoft
"forgot" to save the built-in bookmark that the GoBack command uses. It still
works if you save the document in Word 97-2003 (.doc) format.

--
Regards,
Jay Freedman
Microsoft Word MVP
Email cannot be acknowledged; please post all follow-ups to the newsgroup so
all may benefit.
 
J

Jay Freedman

All I can tell you is that it does work here (I just tried again to be
sure).

--
Regards,
Jay Freedman
Microsoft Word MVP
Email cannot be acknowledged; please post all follow-ups to the newsgroup so
all may benefit.
 
B

Bill G

Jay

Thanks for the replay, is there a way that I could send you my file for you
to look at?
 
G

Graham Mayor

You can easily work around the problem with a few simple macros stored in
the normal template. These intercept the save and saveas routines to insert
a bookmark at the cursor position and locate the cursor at that bookmark (if
present) when the document is next opened. If you already have macros with
these names, incorporate the code in those macros.

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
'Add filename and path to title bar
ActiveWindow.Caption = ActiveDocument.FullName
End Sub

I have added a couple of optional extra lines in the following (and one in
the previous macro) -

Sub AutoOpen()
'add filename and path to title bar
ActiveWindow.Caption = ActiveDocument.FullName
'turn on table grid line display
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.

http://www.gmayor.com/installing_macro.htm


--
<>>< ><<> ><<> <>>< ><<> <>>< <>><<>
Graham Mayor - Word MVP

My web site www.gmayor.com

<>>< ><<> ><<> <>>< ><<> <>>< <>><<>
 
B

Bill G

Thanks for the reply. Macros are something that I have never done before,
and I do not understand them. Where can I go to learn more about them and
how to make them?
 
P

Peter T. Daniels

Did you look at Graham's link "installing macros" at the bottom? Works
like a charm.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top