View Single Post
  #2   Report Post  
Jay Freedman
 
Posts: n/a
Default

On Thu, 31 Mar 2005 12:10:39 -0800,
wrote:

Is it possible to use field codes to determine if the
document has an odd or even number of pages?

I have a couple of long-winded reasons for asking - but
this is essentially what I need to know, if anyone has any
thoughts. I just can't figure it out.

Thanks.


You can do it with a triply-nested field -- where each pair of matched
braces is entered by pressing Ctrl+F9:

{ IF { = MOD({ NUMPAGES },2) } = 1 "odd" "even" }

--
Regards,
Jay Freedman
Microsoft Word MVP FAQ: http://word.mvps.org