section break RRS feed

  • Question

  • I have a word document with the text formatted. I inserted a section break. I selected the section break and pasted it into my code to replace text with the section break but it’s not applying the section break’s text format to the document's text. ???

    Thursday, May 5, 2011 1:44 AM


  • Hi Michael,

    The kind of formatting that is controlled by the Section break, per se, concerns the page layout (margins, orientation, paper size, headers & footers).

    To apply character/paragraph formatting at the Section level, you work with the Section as a range, not merely the Section break. For example:

    ActiveDocument.Sections(1).Range.Font.Bold = True

    Paul Edstein
    [MS MVP - Word]
    Thursday, May 5, 2011 2:21 AM

All replies