How to open a word doc to last modified page...

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I know if you press Shift F5 it will do that. but does someone have the VB
macro code to do this?? I want this to happen every time it is opened. I'm
working on a 200+ page document, and it takes like 10 minutes to find the
page I last worked on.
any help is appreciated.
 
Hi Roger,

like this:

Sub Autoopen()
Application.GoBack
End Sub

You may limit execution to a specific document,
or to a group of documents according to a property
the docs have in common, if you like.

--
Greetings from Bavaria, Germany

Helmut Weber, MVP WordVBA

Win XP, Office 2003
"red.sys" & Chr$(64) & "t-online.de"
 
I went to
Macros > VB editor

then clicked
Normal > Microsoft Word Objects > ThisDocument

and pasted the code. I then made 3 pages of gibberish, and clicked in the
center of the second page and entered more gibberish. when I closed and re
opened it took me back to the beginning of the document.

is this code correct?
 
ah. I See!

apparently this code only works if you clck
File > Save
and then close. but it WONT work if you click the X at the top right and
then click "Yes" to save. wierd. but thanks!
 

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

Back
Top