Share via

How do add a Chapter number along with my Chapter Title in the header of a Word doc?

Anonymous
2015-10-20T23:43:22+00:00

I have already read about 15 articles and none address my particular issue. I can use STYLEREF "Heading 1" to insert chapter names but I want to preface that with "Chapter 1", "Chapter 2", etc according to the document outline. The way my document is constructed, the table of contents and the list of tables make up section 1 and 2. So using the section number to number the chapters will not work in my case. Each section begins with a section break and a brief chapter title that is numbered according to an outline format so for example, my first chapter begins with a line formatted with the heading 1 style and says "1 Growing Daisies". The next line uses heading 2 style and is outlined as "1.1 Introduction to Daisies" followed by paragraphs until a section break where we begin chapter 2, "2 Buying Dirt", etc. How can I use the outline numbering scheme with my heading titles to show a header at the top right of chapter one that says "Chapter 1 - Growing Daisies" and then have it switch to Chapter 2 automatically and so on? Also the document is formatted for two sided printing so the header switches sides on odd and even pages? Please help. This is for a job and I really need a win here to remain living indoors with hot water and stuff.

Microsoft 365 and Office | Word | For home | 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
Answer accepted by question author
  1. Suzanne S Barnhill 277.1K Reputation points MVP Volunteer Moderator
    2015-10-22T12:32:08+00:00

    I don't understand. You say that "my first chapter begins with a line formatted with the heading 1 style and says '1 Growing Daisies'" and you want to "show a header at the top right of chapter one that says 'Chapter 1 - Growing Daisies'". If the 1 in "1 Growing Daisies" is an autonumber, you can achieve what you want with this:

    Chapter { STYLEREF  "Heading 1" \n } - { STYLEREF  "Heading 1" }

    If you insert this through the field dialog and leave the box for "Preserve formatting during updates" checked, the \* MERGEFORMAT switch will be included. I recommend omitting this switch, as it generally causes more problems than it solves.

    Assuming that your second chapter number "2 Buying Dirt" is also Heading 1, then the header will change automatically.

    Since you are also using Different Odd and Even, you will have to put the same fields in the Odd Page Header and Even Page Header (with different alignment if you want the text on the outside of the page).

    1 person found this answer helpful.
    0 comments No comments
Answer accepted by question author
  1. Doug Robbins - MVP - Office Apps and Services 322.9K Reputation points MVP Volunteer Moderator
    2015-10-21T02:27:58+00:00

    You will have to type the word "Chapter" and then following it with a { SECTION } field and then a { STYLEREF 1 } field.

    Each chapter would need to be in a separate Section of the document and if Chapter 1 actually starts in Section 2 of the document, you would need to use

    { = { SECTION } - 1 }

    to subtract 1 from the Section number.

    0 comments No comments

23 additional answers

Sort by: Most helpful
  1. Suzanne S Barnhill 277.1K Reputation points MVP Volunteer Moderator
    2015-10-21T13:29:38+00:00

    To get both the chapter number and the chapter title, you need two StyleRef fields. There are several switches that can be added to the StyleRef field to include part or all of the paragraph number. See https://support.office.com/en-us/article/Field-codes-StyleRef-field-4ad557c2-c8ab-48ba-8fe3-901d0a5775d0?ui=en-US&rs=en-US&ad=US. If you insert the field from Insert | Text | Quick Parts | Field, you can add the appropriate switch by checking a box. Assuming that you have included "Chapter" as part of the numbering, it will be included by the StyleRef field. You'll need to add the dash between the chapter number and the title.

    0 comments No comments
  2. Doug Robbins - MVP - Office Apps and Services 322.9K Reputation points MVP Volunteer Moderator
    2015-10-21T09:20:41+00:00

    You must use CTRL+F9 to insert the field delimiters { }.  You cannot insert them by using those keys on the keyboard.  You will need to use CTRL+F9 to create the {={SECTION}-2} calculation field.

    0 comments No comments
  3. Anonymous
    2015-10-21T08:45:16+00:00

    Chapter 1 actually starts in section 3. That looks like what I need though. I will try your suggestion by typing :

    Chapter {={SECTION}-2} {STYLEREF "Heading 1"} 

    tomorrow and see if that works. It sounds like it will. The STYLEREF field is working fine and so is the SECTION field. I just need it to match the chapter instead of the section which I think your formula there will fix. Thank you! I spent a lot of time on it yesterday and if I don't have it working in the morning, I'm not going to look very good (to my boss).

    If possible, while I might still have your attention, do you happen to know why it is that when I type {STYLEREF 1} as such, or any such field with these brackets, WORD does not recognize it as a field. It is only when I use the "insert field" dialogue that I am able to get it to work. Is this by design, or am I doing something wrong?

    I'm holding off on marking it as answered until I can test it to make sure it solves my issue, but thanks again until then!

    0 comments No comments