View Single Post
  #4   Report Post  
Posted to microsoft.public.word.docmanagement
macropod
 
Posts: n/a
Default Changing page number

Hi Denis,

My preference would be to import the annexure as a linked file - Insert|File
and check the 'link' option. This creates a link via an INCLUDETEXT field.
This way, your TOC will take care of itself.

Another option would be to create your own TOC using cross-references to the
various headings that you want to appear in the TOC. You'd use two such
cross-references for each heading - one to get the text and one to get the
page reference. As you've already noted, the problem is how to deal with
changes if you add/delete pages in the first section. One way would be to
insert a SECTIONPAGES field into the first section, and bookmark it. If you
embed the SECTIONPAGES field in a SET field, the SECTIONPAGES field won't
even be visible. Coding would be something like:
{SET PageCount {SECTIONPAGES}}
In your TOC, the page reference fields will be coded something like:
{PAGEREF _12345}
For the pages to appear after your annexure, you could convert these to
formulae as follows:
(={PAGEREF _12345}+PageCount+20}
That will take care of the changing page count in the first section, with
the '20' representing the number of pages in your annexure. If you want to
accommodate the possibility of the page count in your annexure changing,
you'll once again be dealing with an INCLUDETEXT field, but this time it'll
need to refer to a bookmarked NUMPAGES field in that document, perhaps coded
like:
{SET AnnexPages {NUMPAGES}}
and the page calculation formula coded like:
(={PAGEREF _12345}+PageCount+{INCLUDETEXT "C:/My Documents/Annexure.doc"
AnnexPages}}

Are your eyes watering yet?

Cheers


"Denis Levesque" wrote in message
...
Macropod,

Thanks for your answer.

I did use section breaks. I was wondering if there was another way of
changing the page number. The first page number of the document I want to
insert will vary depending on the sections before. If I enter the "start

page
" at 70 and then I add another page in the previous sections, my page

numbers
will be wrong.

If there is no way to do this, I guess my best bet is to put the formulla

in
my page numbers and change the page numbers in my TOC before the final

print
of my document. This way, I will need to change only one page of my

document
and not the sections I need to change the page numbers.

Thanks.

"macropod" wrote:

Hi Denis,

One way to control your TOC's page numbering would be to use section

breaks,
and format the numbering in each to start page numbering at the number

you
want. You'll have to unlink whichever of the header or footer you've got
your page numbers in for this to work. This approach can be a bit

limiting,
though, if the number of pages in your annexure are liable to change,

since
you'd then have to re-set the following section's starting page number.

An alternative is to simply use an INCLUDETEXT field to import your

annexure
into the main document at the point you want, whether with or without
section breaks. If you do this, your document can take care of the page
numbering automatically - the most you might need to do from time to

time is
to position the cursor somewhere in the imported area and press F9 to

update
the link. The need to do that can be minimised by checking the 'update
automatic links at open' option under Tools|Options|General and the

'update
links' option under Tools|Options|Print.

Cheers


"Denis Levesque" Denis wrote in

message
news
Hello,

I am preparing a 100+ pages document and I will need to insert a 20

page
document as annex1, from page 70 to 90. The main document will have

pages
90
to 100.

The easy way to manage TOC and page numbers is to print 20 blank

pages. I
am
looking for a better solution.

I want to create a footer like Page xx of YY. at page 69, I will have

page
69 of 100.

I want my next page to be page 80 of 100. I do not want to change

section
and say start at 80 as the first portion of the document may change.

It
may
be page 83 tomorrow.

I have tried Page {{page}+20} of {{numpages}+20} but then my TOC is

not
correct.

I would like to have something like Pageref=pageref+20 so my TOC is

correct

Any suggestions?

Thanks