
Signature
Regards
Jonathan West - Word MVP
www.intelligentdocuments.co.uk
Please reply to the newsgroup
Keep your VBA code safe, sign the ClassicVB petition www.classicvb.org
> I'm trying to have a page number only for odd pages. I tried entering a
> field
[quoted text clipped - 19 lines]
>
> Thanks!
Thanks to all who replied. Unfortunately I failed to be clear and for that I
am truly sorry.
I get an error. That was my original point. I did all the things you all
suggested before I posted my message, but it remains, I get an error. Why do
I get the error?
I'm trying to create an instructor guide for training, where the left side
page has no page number, and the right hand side does, therefore the odd
pages of the document would count page 1,2,3,4 for physical pages 1,3,5,7 and
that is why I am trying { = ({PAGE} / 2) + 0.5 } so that 1 / 2 + 0.5 = 1, 3/2
+ 0.5 = 2, etc.
However when I enter the above formula field code, or any field code that
contains a variable within a curly bracket such as {PAGE} or {NUMPAGES}, I
get the following error:
!Syntax Error, {
Is there something wrong with my syntax?
If I enter { = ( 1 / 2 ) + 0.5 } then the field code appropriately
calculates 1 for the page number. As soon as I introduce a {PAGE} into the
code, I get the error.
> Hi Pat,
>
[quoted text clipped - 27 lines]
> >
> > Thanks!
Doug Robbins - 08 Aug 2005 20:32 GMT
You must use Ctrl+F9 to insert the field delimiters. They look like curly
brackets, but they are not.
However, if you use an Odd Page header as Jonathon suggested, you can just
have the page numbers display on that header without the need for any
arithmetic.

Signature
Hope this helps.
Please reply to the newsgroup unless you wish to avail yourself of my
services on a paid consulting basis.
Doug Robbins - Word MVP
> Thanks to all who replied. Unfortunately I failed to be clear and for that
> I
[quoted text clipped - 61 lines]
>> >
>> > Thanks!