PDA

View Full Version : Document does not open showing top of page



ABrown
04-15-2008, 04:06 AM
I have a word document with images on the first page followed by a section break, however when I open the document the cursor is positioned near the bottom part of the document and wont go to the top when I do control home. I wonder if there is a way in VB to set where the cursor sits when the document is first opened. At the moment it is sitting at the section break which is after the images.

Many thanks.

CreganTur
04-15-2008, 05:42 AM
I wonder if there is a way in VB to set where the cursor sits when the document is first opened.

This may not be the most elegant solution, but you can set a bookmark(in this case LetterTop is my bookmark name) at the very top of the document and then go to the bookmark using:
Selection.GoTo What:=wdGoToBookmark, Name:="LetterTop"

Set this as a part of the Open event- should work just fine for you.

ABrown
04-15-2008, 06:10 AM
Hi CreganTur
Many thanks for speedy response, the problem is that there is only a header in the first page and everything else are images - except for the section break at the bottom of the page so I have no where to add a bookmark - it does not recognise it in a header - can I in VB say start at the first header?

Thanks.

Annette