View Single Post
 
Old 05-22-2019, 03:56 PM
Guessed's Avatar
Guessed Guessed is offline Windows 10 Office 2016
Expert
 
Join Date: Mar 2010
Location: Canberra/Melbourne Australia
Posts: 3,977
Guessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant future
Default

If both your StyleRef styles are numbered as part of the same outline number list then there is a way of nesting fields to achieve this. It works by comparing the autonumbers on the headings.

Let's assume that you are including Heading 1 on all pages and Heading 2 only if it sits under that particular Heading 1 level.
Set up the fields like this: the second one is nest of 4 fields.
{StyleRef "Heading 1"} - {If{StyleRef "Heading 2" \n} > {StyleRef "Heading 1" \n} {StyleRef "Heading 2"} ""}
__________________
Andrew Lockton
Chrysalis Design, Melbourne Australia
Reply With Quote