How to open the document at the top

C

CBenac

I create a document from a template then do some search and replace but it
opens at the position of the last search. How can I make it open on first
page ?
 
T

Tony Jollans

The default for all documents is to open at the top. Do you have some code
(in the Template, perhaps) that would make documents jump to the last edited
position). How do other documents (those based on the same template, and
those not) open?
 
C

CBenac

If I remove the search and replace routine, then it opens OK, otherwise, on
last page. Is there any comand to move the insertion point to the top or
something similar?

Thanks

CB
 
T

Tony Jollans

That doesn't really answer my question, or yours, but if you want to move
the insertion point to the start of a document in VBA, use
"Selection.HomeKey wdStory".
 

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