[2 days left] What’s wrong with your cloud strategy? Learn why multicloud solutions matter with Nimble Storage.Register Now

x
?
Solved

Automation Field in MSWord...

Posted on 2002-04-02
6
Medium Priority
?
257 Views
Last Modified: 2008-03-10
Hi,

In order to make the footer of a document display informations only on the last page, i added an automation 'field' (IF) in the footer.  Since the syntax of the IF statement is supposed to be... :

IF Expression1 Operator Expression2 TrueText FalseText

...I added this field :

{ IF PAGE = NUMPAGE "LAST" "NOT LAST" }

I tought that on the last page of the document it would be wrote "LAST" and on the other ones the words "NOT LAST", but it seems that all pages display "NOT LAST" event the last one... Is there someone who can tell me what i do wrong ???

Thanks,

Freg.
0
Comment
Question by:freg
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 3
6 Comments
 
LVL 44

Expert Comment

by:bruintje
ID: 6913157
Hi freq,

You could try

{ IF PAGE=NUMPAGES "LAST" "NOT LAST" }

take away the spaces and add the S

HTH:O)Bruintje
0
 
LVL 1

Author Comment

by:freg
ID: 6913648
That's ok for the S, i just forgot to write it before...

But no matter on wich page the field appears, it still write 'LAST', as if the condition PAGE=NUMPAGES was always True, even on the last page...

It seems that it just doesn't work !  :-(
0
 
LVL 44

Expert Comment

by:bruintje
ID: 6913818
All right this is a fun one learning somthing new ;)

{IF {PAGE}={NUMPAGES} "LAST" "NOT LAST"}

i had one with true and false that worked, what happens is the fieldcodes have to evaluated to their value and so PAGE and NUMPAGES have to entered as fieldcodes

:O)Bruintje
0
Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
LVL 1

Author Comment

by:freg
ID: 6913948
It seems that it's still not working... :-(

I did not understood your last sentence.  Could you explain please ?

Merci,

Freg.
0
 
LVL 44

Accepted Solution

by:
bruintje earned 400 total points
ID: 6914392
OK i'll try to make this as clear as possible

-first insert an IF field without anything else in the expression
-then after the IF use ALT+SHIFT+P to insert a Page field
-toggle the fieldcode of the page number
-then you have {IF{PAGE}}
-next type the equal sign then you get {IF{PAGE}=}
-next insert another page field, toggle the fieldcode and change it to NUMPAGES
-now you have something like {IF{PAGE}={NUMPAGES}}
-now you can enter the rest of the expression and end up with
-{IF{PAGE}={NUMPAGES}"True" "False"}

HTH:O)Bruintje
0
 
LVL 1

Author Comment

by:freg
ID: 6915340
Ok, i didn't know that i had to 'insert' a new field for each field type (Page, NumPage).  I was just typing de words without specifying that it was fields.... Thank you so much !

Freg.
0

Featured Post

Important Lessons on Recovering from Petya

In their most recent webinar, Skyport Systems explores ways to isolate and protect critical databases to keep the core of your company safe from harm.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Outlook for dependable use in a very small business   This article is about using the Outlook application (part of Microsoft Office) in a very small business, or for homeowners where dependability and reliability are critical requirements. This …
With its various features, Office 365 can not only help you with your day-to-day business tasks, it can also do wonders for your marketing campaign.
The viewer will learn how to simulate a series of sales calls dependent on a single skill level and learn how to simulate a series of sales calls dependent on two skill levels. Simulating Independent Sales Calls: Enter .75 into cell C2 – “skill leve…
Have you created a query with information for a calendar? ... and then, abra-cadabra, the calendar is done?! I am going to show you how to make that happen. Visualize your data!  ... really see it To use the code to create a calendar from a q…

656 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question