I am required to use a client’s template to produce some specifications and other reports. In their wisdom the template authors have decided not to use Word’s built-in heading styles but have created their own. These styles are called “DW$_Heading 1, DW$_Heading 2 &c. and are not linked nor are they tied to a specific List Gallery.
I attempted to link these styles using VBA (via the techniques discussed on the mvps.org website) and ran into problems. The styles did not exhibit the same behaviour as the Word built-in heading styles, most significantly they didn’t promote/demote levels as I would expect. For example, when a heading was changed from say a level 2 to level 4 the style didn’t change from “DW$_Heading 2” to “DW$_Heading 4” as I would expect to happen with properly linked Word built-in heading styles.
My questions are:
1. Is the behaviour I expect to see a special property of the word built-in styles?
2. If 1, can I force this behaviour programatically for non built-in styles somehow? or
3. If not 1, is there something missing from my code (attached) that would give me the behaviour I expect?
The code used is an adaptation of the macro I use to set the built-in styles which seems to work well.
regards
Grant Cartledge
Melbourne, Australia