Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Westi on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Word: Remove outline numbering from a paragraph style

Status
Not open for further replies.

Dodiad

Technical User
Dec 3, 2008
6
US
I'm trying to write a macro to set up an outline numbering scheme for a document with multiple heading levels. The first-level heading style ("ch") represents a chapter title with a single arabic chapter number (like "1. Introduction").

The wrinkle is that I also need an auxiliary chapter head style ("aux") for things like the TOC and Index headings. This has the same typography as the normal chapter heads, but without the auto-number. If I define "aux" with .BaseStyle = "ch" and then incorporate "ch" in an outline-numbered list template, then "aux" automatically inherits the numbering as well. Is there a way to override that auto-numbering property and detach the "aux" style from the list template?

I've been searching Word VBA Help, but can't find a way to do it. The nearest thing I've found is the .LinkToListTemplate method, but it requires a ListTemplate object as an argument. There doesn't seem to be a constant like "wdListTemplateNone" or any other way of specifying "link to no list template at all." Does anyone know of a way to do this?
 
Can you do it without code? Figure out how, and THEN code it in VBA.

Skip,

[glasses]Just traded in my old subtlety...
for a NUANCE![tongue]
 
The wrinkle is that I also need an auxiliary chapter head style ("aux") for things like the TOC and Index headings.

There is simple solution. Make a separate Style for this. Do NOT have its base style "ch".

faq219-2884

Gerry
My paintings and sculpture
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top