Page number arithmetic in field codes?

T

tom5490

Does anyone know how to do arithmetic using the PAGE field code to ge
automatic page numbers? I want to do something like this (this does NO
work):
{ = { PAGE } + 1 \* Arabic \* MERGEFORMAT }
The idea is, I want to use the automatic page numbering in a header o
footer, and would normally use { PAGE \* Arabic \* MERGEFORMAT }, but
want to have the number printed to be ONE GREATER THAN the current valu
of PAGE. Any help would be greatly appreciated
 
S

Stefan Blom

You can certainly make calculations including page numbers, but note that you
must enter each pair of field delimiters, { }, by pressing Ctrl+F9.

To show/hide all field codes, press Alt+F9. To update all fields in the
selection, press F9.

--
Stefan Blom
Microsoft Word MVP




"tom5490" wrote in message
Does anyone know how to do arithmetic using the PAGE field code to get
automatic page numbers? I want to do something like this (this does NOT
work):
{ = { PAGE } + 1 \* Arabic \* MERGEFORMAT }
The idea is, I want to use the automatic page numbering in a header or
footer, and would normally use { PAGE \* Arabic \* MERGEFORMAT }, but I
want to have the number printed to be ONE GREATER THAN the current value
of PAGE. Any help would be greatly appreciated.
 
S

Suzanne S. Barnhill

You can do it. Just be aware that, if you have a TOC, what will be displayed
there is the result of the PAGE field, not the calculated field.

"tom5490" wrote in message

Does anyone know how to do arithmetic using the PAGE field code to get
automatic page numbers? I want to do something like this (this does NOT
work):
{ = { PAGE } + 1 \* Arabic \* MERGEFORMAT }
The idea is, I want to use the automatic page numbering in a header or
footer, and would normally use { PAGE \* Arabic \* MERGEFORMAT }, but I
want to have the number printed to be ONE GREATER THAN the current value
of PAGE. Any help would be greatly appreciated.
 
T

tom5490

Hello Stefan,
... note that you must enter each pair of field
delimiters, { }, by pressing Ctrl+F9. To show/hide
all field codes, press Alt+F9. To update all fields
in the selection, press F9.
Thank you! I was entering the curly braces as
literals and wasn't aware that they need to be
entered by pressing Ctrl+F9. I probably also would
have neglected to update the field by pressing F9.
So, it works now!

Thanks again and best regards,

Tom
--
'Stefan Blom[_3_ said:
;493376']
[snip]
 
S

Stefan Blom

I'm glad I could help!

--
Stefan Blom
Microsoft Word MVP




"tom5490" wrote in message
Hello Stefan,
... note that you must enter each pair of field
delimiters, { }, by pressing Ctrl+F9. To show/hide
all field codes, press Alt+F9. To update all fields
in the selection, press F9.
Thank you! I was entering the curly braces as
literals and wasn't aware that they need to be
entered by pressing Ctrl+F9. I probably also would
have neglected to update the field by pressing F9.
So, it works now!

Thanks again and best regards,

Tom
--
'Stefan Blom[_3_ said:
;493376']
[snip]
 

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