Reply
 
Thread Tools Display Modes
  #1   Report Post  
tom5490 tom5490 is offline
Junior Member
 
Posts: 2
Default Page number arithmetic in field codes?

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.
  #2   Report Post  
Posted to microsoft.public.word.pagelayout
Stefan Blom[_3_] Stefan Blom[_3_] is offline
external usenet poster
 
Posts: 6,897
Default Page number arithmetic in field codes?

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.




--
tom5490

  #3   Report Post  
Posted to microsoft.public.word.pagelayout
Suzanne S. Barnhill[_3_] Suzanne S. Barnhill[_3_] is offline
external usenet poster
 
Posts: 52
Default Page number arithmetic in field codes?

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.




--
tom5490

  #4   Report Post  
tom5490 tom5490 is offline
Junior Member
 
Posts: 2
Default

Hello Stefan,

I want to do something like this
(this does NOT work):
{ = { PAGE } + 1 \* Arabic \* MERGEFORMAT }
... 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
--
[quote='Stefan Blom[_3_];493376']
[snip]
--
"tom5490" wrote in message ...
[snip]
  #5   Report Post  
Posted to microsoft.public.word.pagelayout
Stefan Blom[_3_] Stefan Blom[_3_] is offline
external usenet poster
 
Posts: 6,897
Default Page number arithmetic in field codes?

I'm glad I could help!

--
Stefan Blom
Microsoft Word MVP




"tom5490" wrote in message ...

Hello Stefan,

I want to do something like this
(this does NOT work):
{ = { PAGE } + 1 \* Arabic \* MERGEFORMAT }

... 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_ Wrote:
;493376']
[snip]
--
"tom5490" wrote in message ...
[snip]





--
tom5490
Reply
Thread Tools
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
How do I use field codes to format a number into currency? Andrea Mailmerge 11 January 12th 09 03:50 PM
How do I change the starting number in field codes? Gisele Microsoft Word Help 1 July 19th 07 06:51 AM
page number previously printed, now filed codes are print instead oldrutgers Microsoft Word Help 1 April 17th 06 03:41 PM
Secondary page numbering using field codes Jerry Microsoft Word Help 2 January 14th 06 10:13 AM
Can I insert a conditional page break using field codes? Risseecm Mailmerge 7 April 13th 05 11:51 AM


All times are GMT +1. The time now is 03:55 PM.

Copyright ©2000 - 2023, Jelsoft Enterprises Ltd.
Copyright 2004-2023 Microsoft Office Word Forum - WordBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Word"