
Signature
Salut!
_______________________________________
Jean-Guy Marcil - Word MVP
jmarcilREMOVE@CAPSsympatico.caTHISTOO
Word MVP site: http://www.word.mvps.org
Thank you for your reply...
Can a variable be passed to this method?
For example, can the following:
{IF {PAGE} = 1 "This is the first page" "{IF {PAGE}={NUMPAGES}"This is the
last page" "This is a middle page"}"}
receive a variable like [vBOC] and [vEOC]:
{IF {PAGE} = 1 "[vBOC]" "{IF {PAGE}={NUMPAGES}"[vEOC]" "*00*"}"}

Signature
J Smythee
> Jane Smythee was telling us:
> Jane Smythee nous racontait que :
[quoted text clipped - 29 lines]
> Each {} pair must be created with CTRL-F9 and the placement of the " must be
> precise.
Jean-Guy Marcil - 20 Nov 2007 22:34 GMT
Jane Smythee was telling us:
Jane Smythee nous racontait que :
> Thank you for your reply...
>
[quoted text clipped - 8 lines]
>
> {IF {PAGE} = 1 "[vBOC]" "{IF {PAGE}={NUMPAGES}"[vEOC]" "*00*"}"}
You could use document variables and the associated {DOCVARIABLE}field.
{IF {PAGE} = 1 "{DOCVARIABLE vBOC}" "{IF {PAGE}={NUMPAGES}"{DOCVARIABLE
vEOC}" "*00*"}"}
Alternatively, custom document properties can be used as well. The latter do
not require VBA, document variables require VBA to manipulate them.

Signature
Salut!
_______________________________________
Jean-Guy Marcil - Word MVP
jmarcilREMOVE@CAPSsympatico.caTHISTOO
Word MVP site: http://www.word.mvps.org
Jonathan West - 21 Nov 2007 11:34 GMT
> Thank you for your reply...
>
[quoted text clipped - 8 lines]
>
> {IF {PAGE} = 1 "[vBOC]" "{IF {PAGE}={NUMPAGES}"[vEOC]" "*00*"}"}
Not a VBA variable. But you can create a custom document property, put
whatever text you want into the property, and insert a DOCPROPERTY field
referring to it between the quotes.

Signature
Regards
Jonathan West - Word MVP
www.intelligentdocuments.co.uk
Please reply to the newsgroup