Results 1 to 4 of 4
  1. #1
    4 Star Lounger
    Join Date
    Jan 2002
    Location
    London, Gtr London, England
    Posts
    416
    Thanks
    0
    Thanked 0 Times in 0 Posts

    IF field & Calculation (Word 97/2000)

    Hi,

    I am trying to do a calculation and insert a page break into a document (template). Can this be done using the IF field (or any other way) so that it is done automatically. Basically, this is what I need to do:

    If (ActiveDocument.BuiltInDocumentProperties(wdProper tyPages) Mod 2) > 0 Then
    InsertBreak Type:=wdPageBreak
    Else
    ' No action
    End If

    Thanks for your response.

    Regards

    Robie
    Thanks.
    Robie

  2. #2
    Super Moderator
    Join Date
    May 2002
    Location
    Canberra, Australian Capital Territory, Australia
    Posts
    5,054
    Thanks
    2
    Thanked 417 Times in 346 Posts

    Re: IF field & Calculation (Word 97/2000)

    Hi Robie,

    You mean like:
    {IF{=MOD({PAGE},2)}= 1 {QUOTE 12}} ?

    Cheers <img src=/S/thewave.gif border=0 alt=thewave width=225 height=33>
    Cheers,

    Paul Edstein
    [MS MVP - Word]

  3. #3
    4 Star Lounger
    Join Date
    Jan 2002
    Location
    London, Gtr London, England
    Posts
    416
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: IF field & Calculation (Word 97/2000)

    Updated 14:46 UK Time. OK. I have worked out how to specify everything except the 'PAGE BREAK' bit. Any help highly appreciated. Thanks.

    Yes. Thank you but how would you actually put/insert it into a FIELD? Sorry, I know it is a stupid question but ...
    Thanks.
    Robie

  4. #4
    4 Star Lounger
    Join Date
    Jan 2002
    Location
    London, Gtr London, England
    Posts
    416
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: IF field & Calculation (Word 97/2000)

    Thank you Macropod - <img src=/S/thankyou.gif border=0 alt=thankyou width=40 height=15> You guys are just great.

    Sorted my problem.
    Thanks.
    Robie

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •