how do I Create Document with x pages then goto page 1, add data, goto page 2 add data etc...

B

Burnt

Hi there

I am trying to create a document with x amount of pages, then go to
page 1 add a table then go to page 2 add some text etc.

I can add the data no problems (table, graphics and text etc). What I
am stuck on is how do I create a document with a number of pages, then
navigate to the top of page one, then the top of page 2 etc?

Any help you guys / girls could give would be great!!

Thanks in advance

Brett
 
J

Jezebel

You can create pages in Word only by putting content on them. This is the
difference between a word processor (like Word) and a page layout program.
With Word you start with content, then format it into pages. With a page
layout program you start with the pages, then fill them.

For your purposes, the simplest is to define a heading style with 'page
break before' set; then for each page you need, insert a paragraph -- which
can be empty -- set to that style. When you insert your tables, make sure
you insert them after the heading.
 
B

Burnt

You can create pages in Word only by putting content on them. This is the
difference between a word processor (like Word) and a page layout program.
With Word you start with content, then format it into pages. With a page
layout program you start with the pages, then fill them.

For your purposes, the simplest is to define a heading style with 'page
break before' set; then for each page you need, insert a paragraph -- which
can be empty -- set to that style. When you insert your tables, make sure
you insert them after the heading.
Hi there

right, what you say seems pretty straint forward. but I wouldnt know
the code to put headings on a page or where to start, could you give
me an example ?

thanks in advance

Brett
 
J

Jezebel

right, what you say seems pretty straint forward. but I wouldnt know
the code to put headings on a page or where to start, could you give
me an example ?

Something along the lines of

For i = 1 to PagesRequired - 1 '(there's one already there, assuming
you're starting with an empty document)
ActiveDocument.Range.InsertParagraphAfter
Next
ActiveDocument.Paragraphs.Style = "Heading 1"
 
B

Burnt

Something along the lines of

For i = 1 to PagesRequired - 1 '(there's one already there, assuming
you're starting with an empty document)
ActiveDocument.Range.InsertParagraphAfter
Next
ActiveDocument.Paragraphs.Style = "Heading 1"
thanks

ill give it a go tommorrow :)

brett
 

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