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

    Home » Forums » AskWoody support » Productivity software by function » MS Word and word processing help » Insert a Line & a Pagebreak before Heading (Office XP, SP-2)

    Author
    Topic
    #390874

    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

    Viewing 0 reply threads
    Author
    Replies
    • #695973

      >> 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.

      • #695984

        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

    Viewing 0 reply threads
    Reply To: Insert a Line & a Pagebreak before Heading (Office XP, SP-2)

    You can use BBCodes to format your content.
    Your account can't use all available BBCodes, they will be stripped before saving.

    Your information: