Hi All,
Using WIndows 2000 with Word 2002.
We have a vba app that autogenerates a word doc. The app assumes all the heading styles in the doc will be Heading 1-9 (the default word headings). This is fine except when we generate the toc we want there to be an appendix section. I have changed the styles in the template we used so the section headings for the appendix now get generated correctly in the toc. The problem is the data being populated under the toc is not being numbered correctly in the toc. The content is being inserted and formatted assuming the Heading 1-9 styles. How can I programaticly change the content so that it is formatted with a different style?
Currently we use code that does the following:
RenderModelElement _
objModelElement, "", _
FSAppConfig.cnstCSCI_MISC_HEADING, _
intHeadingLevel + 1
I am new to VBA (this problem was handed to me recently) and would appreciate any guidance available.
Using WIndows 2000 with Word 2002.
We have a vba app that autogenerates a word doc. The app assumes all the heading styles in the doc will be Heading 1-9 (the default word headings). This is fine except when we generate the toc we want there to be an appendix section. I have changed the styles in the template we used so the section headings for the appendix now get generated correctly in the toc. The problem is the data being populated under the toc is not being numbered correctly in the toc. The content is being inserted and formatted assuming the Heading 1-9 styles. How can I programaticly change the content so that it is formatted with a different style?
Currently we use code that does the following:
RenderModelElement _
objModelElement, "", _
FSAppConfig.cnstCSCI_MISC_HEADING, _
intHeadingLevel + 1
I am new to VBA (this problem was handed to me recently) and would appreciate any guidance available.