Results 1 to 9 of 9
  1. #1
    4 Star Lounger
    Join Date
    Apr 2002
    Location
    Northern Territory, Australia
    Posts
    471
    Thanks
    16
    Thanked 0 Times in 0 Posts

    Conditional Footer (Word 97)

    I would like to have a footer appear on a page IF text goes over onto a new page. The footer would only appear on page 2 not on page one.

    See attachment for better understanding.

    Kerry
    Attached Files Attached Files

  2. #2
    Uranium Lounger
    Join Date
    Dec 2000
    Location
    Los Angeles Area, California, USA
    Posts
    7,453
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Conditional Footer (Word 97)

    Hi Kerry:
    1. Create a new template with the boilerplate text.
    2. Open the footer & put in the footer that you want for the second page (yes, put it in the first page footer for now).
    3. Go to File/Page Setup.../Layout tab/check Different first page (under Headers & Footers).
    4. Now go to the First Page Footer (you'll notice that it's empty) & put in the footer that you want for the first page.

    If I've understood your correctly, there will only be one or two pages in this document. If I've misunderstood you, please post back.
    Cheers,

  3. #3
    4 Star Lounger
    Join Date
    Apr 2002
    Location
    Northern Territory, Australia
    Posts
    471
    Thanks
    16
    Thanked 0 Times in 0 Posts

    Re: Conditional Footer (Word 97)

    Thanks for taking the time to reply Phil.

    I see what you have done, but what I am trying to do is make the footer appear on page one and not page two.

    Also - in the real document there are 5 - 6 pages. This would relate to pages 4 to 5. Just to add to the complexity of the issue.

    The actual document has a user form to input the data. Could it be done with VB?

    Kerry

  4. #4
    Plutonium Lounger
    Join Date
    Nov 2001
    Posts
    10,550
    Thanks
    0
    Thanked 7 Times in 7 Posts

    Re: Conditional Footer (Word 97)

    Kerry,

    I am a bit confused by the statement "what I am trying to do is make the footer appear on page one and not page two", followed by "there are 5 - 6 pages. This would relate to pages 4 to 5"

    A footer is generally applied to a whole section of a document, not just to a single page, but there are ways of making different text appear. In your case would it be sufficient to put a Section Break before page 4. You could then specify a different first page footer for the section starting at page 4.

    You can certainly modify the contents of a footer from within VBA, we just need to understand exactly what you need. When I want information from a userform entered in a footer I generally define a custom document property in the VBE and use a { DOCPROPERTY variable } field in the footer. This is much easier than trying to directly modify the document, but there are many other methods too.

    Edited by StuartR to add
    If you want the footer to only appear on the first page if the page has grown in size to need a second page then you can
    <UL><LI>Put a section break before page 4
    <LI>Put another section page at the very end of page 4
    <LI>Put the field { If { SECTIONPAGES }>1 "xxx" "" } in your footer
    <LI>Replace the xxx in the field with the entire table that you want to appear[/list]StuartR

  5. #5
    4 Star Lounger
    Join Date
    Apr 2002
    Location
    Northern Territory, Australia
    Posts
    471
    Thanks
    16
    Thanked 0 Times in 0 Posts

    Re: Conditional Footer (Word 97)

    Sorry for the confusion with page numbers.

    I have attached the full document which might help explain it a bit better.

    I tried your edited solution Stuart, but with no luck.

    Kerry
    Attached Files Attached Files

  6. #6
    Plutonium Lounger
    Join Date
    Nov 2001
    Posts
    10,550
    Thanks
    0
    Thanked 7 Times in 7 Posts

    Re: Conditional Footer (Word 97)

    I think this does what you want, but you need to "Update Fields" to get the footer to change. This will happen automatically when you print the document.

    StuartR
    Attached Files Attached Files

  7. #7
    4 Star Lounger
    Join Date
    Apr 2002
    Location
    Northern Territory, Australia
    Posts
    471
    Thanks
    16
    Thanked 0 Times in 0 Posts

    Re: Conditional Footer (Word 97)

    Thank you Stuart. This seems to work, albeit a little fiddly.

    Just to add to this, what would I do to put a header on the new page created when I go over onto a new page.

    I would like to put something like " Continuation of Affidavit" at the top of the page.

    Kerry

  8. #8
    Plutonium Lounger
    Join Date
    Nov 2001
    Posts
    10,550
    Thanks
    0
    Thanked 7 Times in 7 Posts

    Re: Conditional Footer (Word 97)

    It will be very easy to create the header on the 2nd and subsequent pages of this section. The section is already set up to have a "different first page" so no fields or other complex stuff will be needed.
    <UL><LI>Make sure a second page exists, by inserting enough text to spill over to the second page
    <LI>Put the text you want in the header
    <LI>Now remove the extra text you added so the second page "disappears" [/list]You can no longer see the second page header, but as soon as that second page appears again it's header will be there.

    StuartR

  9. #9
    4 Star Lounger
    Join Date
    Apr 2002
    Location
    Northern Territory, Australia
    Posts
    471
    Thanks
    16
    Thanked 0 Times in 0 Posts

    Re: Conditional Footer (Word 97)

    Thankyou Stuart - it works!! ! <img src=/S/groovin.gif border=0 alt=groovin width=21 height=21>

    A bit more for the brain cells to store.

    Kerry

Posting Permissions

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