Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Last Cursor Location

369 views
Skip to first unread message

G@discussions.microsoft.com Bill G

unread,
Sep 15, 2009, 9:44:01 AM9/15/09
to

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 FAQ: http://word.mvps.org
Email cannot be acknowledged; please post all follow-ups to the newsgroup so
all may benefit.

Jay Freedman

unread,
Sep 15, 2009, 10:14:06 AM9/15/09
to
All I can tell you is that it does work here (I just tried again to be
sure).

--
Regards,
Jay Freedman
Microsoft Word MVP FAQ: http://word.mvps.org
Email cannot be acknowledged; please post all follow-ups to the newsgroup so
all may benefit.

Bill G

unread,
Sep 15, 2009, 10:36:01 AM9/15/09
to
Jay

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

Graham Mayor

unread,
Sep 15, 2009, 10:49:52 AM9/15/09
to
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
Word MVP web site http://word.mvps.org

Bill G

unread,
Sep 15, 2009, 11:27:02 AM9/15/09
to
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?

Peter T. Daniels

unread,
Sep 15, 2009, 11:56:43 AM9/15/09
to
Did you look at Graham's link "installing macros" at the bottom? Works
like a charm.

> > Word MVP web sitehttp://word.mvps.org

> > >>> 97-2003 (.doc) format.-

Bill G

unread,
Sep 15, 2009, 1:13:01 PM9/15/09
to

I missed that, I'll try it and see if I get in trouble.

Thanks

app

unread,
Jan 26, 2011, 5:57:57 AM1/26/11
to
For some reason the SaveFile does not work, but SaveFileAs works for me. Might add-ons like FileSite/WorkSite that we have installed somehow catch and modify the FileSave? How do I debug this?

app

unread,
Jan 26, 2011, 6:03:41 AM1/26/11
to
More debugging: "Save" from menu works, "Ctrl-s" works, but closing the window and saying "yes, save" does not work.

Peter T. Daniels

unread,
Jan 26, 2011, 10:16:59 AM1/26/11
to
On Jan 26, 6:03 am, app <porttik...@gmail.com> wrote:
> More debugging: "Save" from menu works, "Ctrl-s" works, but closing the window and saying "yes, save" does not work.

Is this in relation to the "last cursor location" macro discussed in
this thread?

Or are you saying that your work is lost entirely when you close the
window and answer yes?

Has the file somehow been converted to read-only? A few times that's
happened to me (there's some key combination that does that when hit
accidentally), and the solution is to Save As a different name (in the
same folder), delete the file that has the old name, and rename the
different name to the old name (so the Shortucts to it will still find
it).

0 new messages