Opening a saved document...

C

Chelsea

I'm working on a pretty long Word 2007 document. I often will work on page
somewhere near the middle and then save and close the document. When I reopen
the document I'm back at page 1. Is there away to set Word to open to the
last place I was typing/viewing?
 
H

Helmut Weber

Hi Chelsea,


in Word 2003 [shift F5] takes you
to the last editing position.

I don't think MS would change that.

You may try a macro, like:

Sub autoopen()
Application.GoBack
End Sub

--

Greetings from Bavaria, Germany

Helmut Weber, MVP WordVBA

Vista Small Business, Office XP
 
S

Suzanne S. Barnhill

Unfortunately, this doesn't work in Word 2007. Shift+F5 works as long as the
document is open, but the last editing position is not saved with the
document when it is closed. You can explicitly set a bookmark and go to it
when you open the document, however. If you use a standard name for this
bookmark (such as LastEdit), you could write an AutoOpen macro to do this
automatically (the macro would fail if you forgot to set the bookmark). It
would be nice if MS would imitate WordPerfect's "QuickMark" capability.
 
G

Graham Mayor

If you add the following macro to normal.dot

Sub FileSave()
With ActiveDocument
.Bookmarks.Add Name:="SavePlace"
.Save
End With
End Sub

Word will save the cursor position in a bookmark called SavePlace when the
document is saved.

An AutoOpen macro in normal.dot can then be used to locate that position
whenevr a document is opened. The error when you open a document without the
bookmark is easy enough to trap

Sub AutoOpen()
On Error Resume Next
Selection.GoTo What:=wdGoToBookmark, Name:="SavePlace"
End Sub

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

My web site www.gmayor.com

<>>< ><<> ><<> <>>< ><<> <>>< <>><<>

Unfortunately, this doesn't work in Word 2007. Shift+F5 works as long
as the document is open, but the last editing position is not saved
with the document when it is closed. You can explicitly set a
bookmark and go to it when you open the document, however. If you use
a standard name for this bookmark (such as LastEdit), you could write
an AutoOpen macro to do this automatically (the macro would fail if
you forgot to set the bookmark). It would be nice if MS would imitate
WordPerfect's "QuickMark" capability.

Helmut Weber said:
Hi Chelsea,


in Word 2003 [shift F5] takes you
to the last editing position.

I don't think MS would change that.

You may try a macro, like:

Sub autoopen()
Application.GoBack
End Sub

--

Greetings from Bavaria, Germany

Helmut Weber, MVP WordVBA

Vista Small Business, Office XP
 
G

Graham Mayor

That should be to 'normal.dotm' :(

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

My web site www.gmayor.com

<>>< ><<> ><<> <>>< ><<> <>>< <>><<>

Graham said:
If you add the following macro to normal.dot

Sub FileSave()
With ActiveDocument
.Bookmarks.Add Name:="SavePlace"
.Save
End With
End Sub

Word will save the cursor position in a bookmark called SavePlace
when the document is saved.

An AutoOpen macro in normal.dot can then be used to locate that
position whenevr a document is opened. The error when you open a
document without the bookmark is easy enough to trap

Sub AutoOpen()
On Error Resume Next
Selection.GoTo What:=wdGoToBookmark, Name:="SavePlace"
End Sub

Unfortunately, this doesn't work in Word 2007. Shift+F5 works as long
as the document is open, but the last editing position is not saved
with the document when it is closed. You can explicitly set a
bookmark and go to it when you open the document, however. If you use
a standard name for this bookmark (such as LastEdit), you could write
an AutoOpen macro to do this automatically (the macro would fail if
you forgot to set the bookmark). It would be nice if MS would imitate
WordPerfect's "QuickMark" capability.

Helmut Weber said:
Hi Chelsea,


in Word 2003 [shift F5] takes you
to the last editing position.

I don't think MS would change that.

You may try a macro, like:

Sub autoopen()
Application.GoBack
End Sub

--

Greetings from Bavaria, Germany

Helmut Weber, MVP WordVBA

Vista Small Business, Office XP
 

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