Microsoft Office Forums

Go Back   Microsoft Office Forums > >

Reply
 
Thread Tools Display Modes
  #1  
Old 09-22-2014, 05:48 AM
Huffle Huffle is offline Can I unter the last heading in a footer, regardless of what level the header is? Windows 7 64bit Can I unter the last heading in a footer, regardless of what level the header is? Office 2010 32bit
Novice
Can I unter the last heading in a footer, regardless of what level the header is?
 
Join Date: Sep 2014
Posts: 1
Huffle is on a distinguished road
Default Can I unter the last heading in a footer, regardless of what level the header is?

I can enter the first (or last) Heading 1, or the Heading 2, or the Heading 3. But I don't care what level the first heading is. Can I get a styleref to ANY heading?

Some pages have the first heading as a Heading 1
1. Introduction
6. Travel

Some pages have a lower level heading
2.2 Budget template
7.5 xjhrek

I want the first heading on the page to show in the footer, regardless of the level of the header.

Ok - now I've said the same thing 3 times.



Any tips??
Thanks.
Reply With Quote
  #2  
Old 09-22-2014, 07:38 AM
macropod's Avatar
macropod macropod is offline Can I unter the last heading in a footer, regardless of what level the header is? Windows 7 64bit Can I unter the last heading in a footer, regardless of what level the header is? Office 2010 32bit
Administrator
 
Join Date: Dec 2010
Location: Canberra, Australia
Posts: 22,363
macropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond repute
Default

A StyleRef field can reference any Style, regardless of whether Style that is a Paragraph Style or Character Style or, if Heading (which is a Paragraph Style), what level that Heading is. However, a StyleRef field cannot choose between Styles as to which it might show. If you reference Heading 1 via a StyleRef field, then the Heading 1 content is what will be replicated, regardless of whether any other Heading Styles occur on the same page. So, if you reference Heading 1 via a StyleRef field and if you also reference Heading 2 via a StyleRef field, both will show. There is also no other field code that will allow you conditionally to determine which StyleRef field to show.
__________________
Cheers,
Paul Edstein
[Fmr MS MVP - Word]
Reply With Quote
  #3  
Old 09-28-2014, 03:48 PM
Stefan Blom's Avatar
Stefan Blom Stefan Blom is offline Can I unter the last heading in a footer, regardless of what level the header is? Windows 7 64bit Can I unter the last heading in a footer, regardless of what level the header is? Office 2013
Moderator
 
Join Date: Aug 2011
Posts: 4,003
Stefan Blom is a name known to allStefan Blom is a name known to allStefan Blom is a name known to allStefan Blom is a name known to allStefan Blom is a name known to allStefan Blom is a name known to all
Default

Assuming that I have correctly understood what you are trying to accomplish, try the following...

You can create a character style with no formatting added by setting its "Style based on" option to "(underlying properties)." Then apply your character style to all of your heading paragraphs and add { STYLEREF "mycharacterstyle" \L } to the header. For this to work, there must be at least one heading style on each page (otherwise Word starts searching on the other pages).
__________________
Stefan Blom
Microsoft Word MVP

Microsoft 365 apps for business
Windows 11 Professional
Reply With Quote
Reply

Tags
footer, headings, styleref



Similar Threads
Thread Thread Starter Forum Replies Last Post
Navigation pane Show.Heading level x only NobodysPerfect Word VBA 11 05-09-2014 05:26 AM
Can I unter the last heading in a footer, regardless of what level the header is? Using heading style level in a paragraph kam Word 7 03-24-2014 02:58 PM
Can I unter the last heading in a footer, regardless of what level the header is? Heading level numbering in 2010 - wrong after second header level 1 taran Word 3 07-08-2013 01:12 PM
One level 3 heading number is wrong - but all others are fine Dr Wu Word 4 05-09-2013 10:07 AM
Can I unter the last heading in a footer, regardless of what level the header is? Word Heading Level 1 will not stay (2010) hockeytown Word 2 10-04-2012 07:58 AM

Other Forums: Access Forums

All times are GMT -7. The time now is 12:57 AM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2025, vBulletin Solutions Inc.
Search Engine Optimisation provided by DragonByte SEO (Lite) - vBulletin Mods & Addons Copyright © 2025 DragonByte Technologies Ltd.
MSOfficeForums.com is not affiliated with Microsoft