Insert a new page

K

Ken

Hi,

I would like to insert a new page in my exist word
document but I couldn't find any "PAGE" object. Does any
method I can use to insert a new page with some format
and texts in my existed document. Thanks! Should I use
something like pagebreak property instead?

Ken
 
J

Jonathan West

Hi Ken

The Word document object model doesn't classify pages as objects, the idea
behind Word is that there is a continuous stream of text, and the page break
come where they come - sometimes in different places for the same document
depending on the printer!

To insert a manual page break, use the InsertBreak method. For instance, the
following code inserts a break at the current selection.

Selection.InsertBreak Type:=wdPageBreak
 

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