From: Stefan Blom on
It's the same problem in Word 2007, which I hadn't noticed (or maybe I had
noticed at one point and then forgotten about it). That is deceptive,
indeed, and surely it must be considered a bug. Surprising as it may seem,
if you look directly in the Paragraph dialog box (as if you are trying to
change direct paragraph formatting), the "Outline level" box *is* greyed
out.

When you change the TOC level of a built-in heading in the Table of Contents
Options dialog box, Word adds the \t switch to the TOC field code, as you've
already pointed out. That same switch is used if you specify a TOC level for
a style that doesn't have an outline level defined (and therefore won't be
added by default to the dialog box).

--
Stefan Blom
Microsoft Word MVP



"Suzanne S. Barnhill" <sbarnhill(a)mvps.org> wrote in message
news:OUoUg2M1KHA.364(a)TK2MSFTNGP02.phx.gbl...
> What's quite deceptive, though, is that if I go to Modify Style for
> Heading
> 1 in Word 2003 and choose Format | Paragraph, the outline level setting is
> NOT disabled. Word lets you think you can change it (I can set it to Level
> 2
> or Body Text and click OK), but it remains unchanged. To my mind that's a
> bug.
>
> What you can do, however, is change the TOC level of a built-in heading,
> by changing the number beside it in the TOC Options dialog.
>
> --
> Suzanne S. Barnhill
> Microsoft MVP (Word)
> Words into Type
> Fairhope, Alabama USA
> http://word.mvps.org
>
> "Stefan Blom" <StefanBlom(a)discussions.microsoft.com> wrote in message
> news:OL2JXsM1KHA.4204(a)TK2MSFTNGP04.phx.gbl...
>> Well, the outline levels of the built-in headings cannot be changed. In
>> fact, you can't even change the outline levels by applying direct
>> formatting: the "Outline level" option is greyed out in the Paragraph
>> dialog box.
>>
>> --
>> Stefan Blom
>> Microsoft Word MVP
>>
>>
>>
>> "Suzanne S. Barnhill" <sbarnhill(a)mvps.org> wrote in message
>> news:u01i6OM1KHA.752(a)TK2MSFTNGP04.phx.gbl...
>>> What confuses me is what you are doing when you remove the number from a
>>> style or add a number to a style in the TOC Options dialog. This doesn't
>>> actually change the outline level of the style, nor does it apply that
>>> outline level to those paragraphs as direct formatting; all it does is
>>> tell Word to include the style at the specified level; as noted in
>>> http://sbarnhill.mvps.org/WordFAQs/TOCTips.htm#OmitPageNumbers, you can
>>> swap heading levels this way (resulting in a TOC field such as { TOC \o
>>> "3-3" \n 2-3 \h \z \t "Heading 1,2,Heading 2,1" }, which results in
>>> using
>>> TOC 1 for Heading 2 and TOC 2 for Heading 1), though you do have to
>>> clear
>>> the check box for "Outline levels," which removes the \u switch. So that
>>> adds another layer of complexity to the whole subject.
>>>
>>> --
>>> Suzanne S. Barnhill
>>> Microsoft MVP (Word)
>>> Words into Type
>>> Fairhope, Alabama USA
>>> http://word.mvps.org
>>>
>>> "Pamelia Caswell via OfficeKB.com" <u43222(a)uwe> wrote in message
>>> news:a60d228091390(a)uwe...
>>>> One of the most misleading is this from Word 2003 help:
>>>>
>>>> \o "Headings"
>>>> Builds a table of contents from paragraphs formatted with built-in
>>>> heading styles (heading style: Formatting applied to a heading. ... For
>>>> example, { TOC \o "1-3" } lists only headings formatted with the styles
>>>> Heading 1 through Heading 3. ...
>>>>
>>>> I learned 6 or 7 years ago, I think in one of the other Word forums I
>>>> attend
>>>> (Word-PC maybe), that styles with paragraph outline levels other than
>>>> body
>>>> text could be picked up by the TOC. That, to me meant that \o probably
>>>> stands for paragraph outline level instead of heading level. But I
>>>> have
>>>> only
>>>> seen one or two people say that. And MS never corrected its help text
>>>> for
>>>> W2003.
>>>>
>>>> Pam
>>>>
>>>> Suzanne S. Barnhill wrote:
>>>>>No, and even the TOC switches article tells little more than the Help
>>>>>file
>>>>>because I was not really familiar with those switches when I wrote the
>>>>>article. Since then I've done a lot more playing around with TOCs, but
>>>>>not
>>>>>with the \o and \u switches.
>>>>>
>>>>>Thanks for the reminder about the DM article; I'll read that before I
>>>>>proceed.
>>>>>
>>>>>> Note that a (brief) description of the \u switch is included in the
>>>>>> article
>>>>>[quoted text clipped - 41 lines]
>>>>>>>>>>>
>>>>>>>>>>>Thanks.
>>>>
>>>> --
>>>> Message posted via http://www.officekb.com
>>>>
>>>>
>>>
>>
>>
>>
>>
>>
>