Solved

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

Posted on 2008-10-13
4
1,824 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:
EricFletcher earned 200 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:EricFletcher
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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

If you work with Word a lot, you probably use styles. If you use styles a lot, you've probably balled your fist more often than not when working with the ribbon. In Word 2007/2010, one of the things that I find missing when using styles is a quic…
I'm writing to share my clumsy experience in using this elegant tool so you can avoid every stupid mistake I made. (I leave it to the authorities to decide if this deserves a place in the Knowledge archives.)  Now that I am on the other side of my l…
This video walks the viewer through the process of creating a watermark for their document, customizing it, and saving it for viewing/printing needs.
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…

920 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

Need Help in Real-Time?

Connect with top rated Experts

17 Experts available now in Live!

Get 1:1 Help Now