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.
--
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.
Thanks for the replay, is there a way that I could send you my file for you
to look at?
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
> > Word MVP web sitehttp://word.mvps.org
> > >>> 97-2003 (.doc) format.-
Thanks
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).