Not directly.
You can put a bookmark on the page you want to open to. Then write a macro to
select the bookmark when the document opens (see
http://word.mvps.org/faqs/macrosvba/DocumentEvents.htm).
It would be possible -- but not advisable -- to write an AutoOpen or
Document_Open macro in the document itself, like this (assuming the bookmark is
named OpenMe):
Sub AutoOpen()
If ActiveDocument.Bookmarks.Exists("OpenMe") Then
ActiveDocument.Bookmarks("OpenMe").Range.Select
End If
End Sub
The problem with this is that Word always suspects a macro in a document, as
opposed to one in a template, to be a virus. Depending on your security
settings, Word will silently disable the macro or display a dialog asking
whether to disable or enable the macro. To avoid this, you can digitally sign
the macro code.
A better idea, if the document in question is only for your use and won't be
distributed to other users, would be to put the macro into Normal.dot. There are
several ways to arrange that only certain documents get the treatment.
- Choose a bookmark name, maybe some randomly generated nonsense, for the
bookmark name to ensure that only the desired documents will ever contain that
specific bookmark. Then the code above will be OK; if the current document
doesn't contain a bookmark with the odd name, the macro won't do anything.
- Enhance the macro to look at ActiveDocument.Name, and simply exit if it isn't
one of the desired documents.
- Change the name of the macro to something that isn't automatically executed by
Word. Then use the /m switch on the command line to open a desired document and
run the macro.