Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

How do I create a breadcrumb trail header in Word (eg Heading1 - Heading2 - Heading3

Posted on 2008-10-13
4
Medium Priority
?
2,105 Views
Last Modified: 2012-05-05
I have a large Word Document that needs a customised header.  I need to show the reader on every page where they are within the document.  I am consistently using Heading styles so I would like to have a header like this:
heading1 - heading2 - heading3 - page_num
I hope that makes sense.  To me it seems a fairly basic requirement that isn't available prebuilt within Word.
0
Comment
Question by:ochristmas
  • 2
4 Comments
 
LVL 21

Accepted Solution

by:
Eric Fletcher earned 600 total points
ID: 22702428
You can use the STYLEREF field codes to do this. In your header, choose Insert | Field, and select the Styleref field. From the options that get displayed on the right, select Heading 1 and OK. Add your punctuation and repeat for each of the other 2 headings and end with the page number field.

Styleref will display the content of the last instance of the named style. You can choose options to modify how Word looks for the style on the page (from Help, look for "STYLEREF field switches" for details).
0
 

Expert Comment

by:silviomel
ID: 22708821
Use the customize page number field to create custom headers if that makes any sense.  In other words use custom page number field and type the custom headers that you would like for each page.  In addition you can add an additional page field code for the page number.
0
 

Author Comment

by:ochristmas
ID: 22709642
Thanks for that EricFletcher.  My only issue with the solution is you have to decide the depth of the breadcrumb across the board.  By this I mean:
If one section of the site goes to 5 levels and later it goes to just 2 it still adds the 3 old sub-levels.  Does that make sense?
0
 
LVL 21

Expert Comment

by:Eric Fletcher
ID: 22710906
Yes, that is a limitation.

I suppose if you were using numbering with the headings, it may be possible to use IF fields to determine if the current levels were all the same, and not include any sublevels that had a number lower than the level 1... I haven't tried that, but I'm sure it would be complicated!

Another workaround might be to pad the content with empty headings to the level you want to breadcrumb whenever you change up to a different level. The STYLEREF field would then display the empty paragraph's content. If you used an IF field, you could test for an empty result and suppress the following dash separator.

0

Featured Post

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This is written from a 'VBA for MS Word' perspective, but I am sure it applies to most other MS Office components where VBA is used.  One thing that really bugs me is slow code, ESPECIALLY when it's mine!  In programming there are so many ways to…
Using Word 2013, I was experiencing some incredible lag when typing.  Here's what worked for me....
This video walks the viewer through the process of creating Hyperlinks for the web and other documents. Select the "Insert" tab: Click "Hyperlink":  Type "http://" followed by a web address to reference a website or navigate to a document to ref…
This Micro Tutorial well show you how to find and replace special characters in Microsoft Word. This is similar to carriage returns to convert columns of values from Microsoft Excel into comma separated lists.

927 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question