Results 1 to 3 of 3
  1. #1
    3 Star Lounger
    Join Date
    Jul 2001
    Location
    ASKER, Norway
    Posts
    277
    Thanks
    6
    Thanked 0 Times in 0 Posts

    Insert a Line & a Pagebreak before Heading (Office XP, SP-2)

    New challenges:

    Our Bid department came up with a new requirement for a document:

    I have a template for creating offer documents. The Headings have a defined style; Heading 1 have a shaded area with an orange font.
    A Heading 1 shall always appear on the top of the page. Doing so to day the shaded area shows on the previous page as part of the pagebreak, since the Heading has a shading (Dark Blue) which is not nice.

    Therefore
    I need to code in VBA the following behaviour:
    When a Heading 1 is made it shall always start on a new page and always have a line of a small font inserted before the Heading. Then I avoid the pagebreak to appear on the previous page.

    I have tried Format/Paragraph/Line and Page Breaks and the Page break before
    If a line of another format (normal) with a small font could be inserted before the Heading it will solve the problem.

    Or may be there are other solutions?

    Hope someone can give me a clue of how to do that.

    Bjorn

  2. #2
    Plutonium Lounger
    Join Date
    Mar 2002
    Posts
    84,353
    Thanks
    0
    Thanked 29 Times in 29 Posts

    Re: Insert a Line & a Pagebreak before Heading (Office XP, SP-2)

    >> I have tried Format/Paragraph/Line and Page Breaks and the Page break before

    Can you tell us why that didn't solve your problem? If you check Page Break Before in the style definition, the Heading 1 style will always begin on a new page, but there will be no physical page break that shows the unwanted shading.

  3. #3
    3 Star Lounger
    Join Date
    Jul 2001
    Location
    ASKER, Norway
    Posts
    277
    Thanks
    6
    Thanked 0 Times in 0 Posts

    Re: Insert a Line & a Pagebreak before Heading (Office XP, SP-2)

    Thanks Hans,

    I got it, but may be I tried it on a Heading that was not set with "Page Break Before".

    I tried ones more and it now seems to Work OK!

    So thanks again!

    Bjorn

Posting Permissions

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