Share via

Insert Section Break Before Style

Anonymous
2022-11-28T05:17:35+00:00

I'm writing a manual and want to include the chapter name (which is styled using Heading 1) appear in the headings and to change appropriately when the next chapter starts. I am OK with hand-entering each chapter's information, but I obviously need a section break at the beginning of each chapter, and ideally I'd like to have that inserted automatically. Is there a way to force a section break before a particular style like there is for page breaks?

Microsoft 365 and Office | Word | For business | Windows

Locked Question. This question was migrated from the Microsoft Support Community. You can vote on whether it's helpful, but you can't add comments or replies or follow the question.

0 comments No comments

1 answer

Sort by: Most helpful
  1. Doug Robbins - MVP - Office Apps and Services 322.9K Reputation points MVP Volunteer Moderator
    2022-11-28T06:08:45+00:00

    Unfortunately, Word does not have that ability and you will need to manually insert the Section Break and following it with a paragraph in the Heading 1 Style.

    Or, you could use a macro containing the following code

    Dim headingrange As Range

    With ActiveDocument

    .Sections.Add Selection.Range, wdSectionOddPage 'or wdSectionNewPage
    
    Set headingrange = .Range 
    
    headingrange.Collapse wdCollapseEnd 
    
    headingrange.Style = "Heading 1" 
    

    End With

    To try and have Word changed to include such ability, raise the issue with Microsoft via the Feedback facility on the Help tab of the ribbon.

    2 people found this answer helpful.
    0 comments No comments