Populating Bookmarks on a Word Object

J

jeff

Hi all

Firstly apologies for Cross-Posting....just not sure which one to post to?

I have an app which opens a word document object based on a template and
makes it visible. It then populates a series of bookmarks in the template
and terminates. The user is then left with the word document open allowing
them to make manual changes and save it.

We have noticed that if there are bookmarks in the footer, it opens the
document in a split screen mode with the footer in the bottom screen.

Is there anything that can be done to prevent this split screen mode. We
just have a normal word setup. Is it something that word "just does" or is
there a configuration parameter or object setting which can be used to stop
it happening?

cheers
Jeff
 
T

Tony Jollans

How are you populating the bookmarks? Off the top of my head I think Word
will open a separate pane if you Select footer content but not if you simply
access it using a (non-Selection) Range.

If you just want to close the pane, this should do it ..

If ActiveWindow.View.SplitSpecial <> wdPaneNone Then
ActiveWindow.Panes(2).Close
End If
 
J

jeff

Tony

Thanks for your advice.

Cheers
Jeff


Tony Jollans said:
How are you populating the bookmarks? Off the top of my head I think Word
will open a separate pane if you Select footer content but not if you
simply
access it using a (non-Selection) Range.

If you just want to close the pane, this should do it ..

If ActiveWindow.View.SplitSpecial <> wdPaneNone Then
ActiveWindow.Panes(2).Close
End If
 

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