V
Vicky
Hi,
I have chosen to ask this question on here because I have scoured the
internet and despite also asking a colleague to investigate they only have
limited time to help at present and I need to determine whether I am
completely missing something or not. I will do my best to ensure that my
problem is as clearly articulated as possible since my code samples are very
large.
I am using Word 2003 SP3 on Windows XP SP2
I have set up a template document which creates a range of document styles.
This works fine. I also created an Outline list and linked the relevant
styles - worked great.
The problems started when I needed to use a second Outline list because I
found I needed more than 9 levels.
The template I am using is Global.
One option we have is to Copy the styles into the users Normal.dot using a
Macro however I am unsure whether this would resolve the issue I am having
with my numbering.
I have created 2 macros for my Outline lists - Outline_1 and Outline_2
Outline_1 was the original which updated 9 styles really well.
Due to needing to add a 6th level to one of our numbering sets I chose to
remove 2 styles from Outline_1 and replace one of them with the newly
required 6th style - so now, Outline_1 updates 8 styles with 1 blank level.
Outline_2 was created to allow the 2 styles from Outline_1 to still have
their number formatting.
I went through each set of code ensuring that Outline_1 referred to
ListTemplate(1) and Outline_2 referred to ListTemplate(2)
The problem occurs when I run both of these macro's together, even if they
are ran at different points within the code rather than immediately one after
the other.
I have also noticed that the same problem can occur when the codes are ran
manually although this is not always the case.
The Problem: The linked styles number level formatting is removed and the
styles revert back to simple paragraph types when the Outline macros are both
executed. Therefore when I use a style within my document there is no
numbering assigned.
Based upon my reading I have the following understanding:
1. To use multi-level numbering I need to link each level to a specified style
2. I can only use 9 levels of number formatting within 1 Outline list
3. I cannot increase the number of levels within an Outline list.
4. I can use multiple Outline lists within 1 document
What I have tried:
1. Using the ListNum ID Field
2. Creating 2 List Styles and linking them to the outline lists
3. Running the Outline macros in the same macro
4. Running the Outline macro's after each set of styles related to them have
been created
Therefore I am at a loss as to why defining 2 Outline lists with linked
styles would cause the number formatting to be removed rendering my numbering
useless.
I really appreciate anyone who can help me as I am now at a complete loss as
to where I should try next.
TIA
Vicky
I have chosen to ask this question on here because I have scoured the
internet and despite also asking a colleague to investigate they only have
limited time to help at present and I need to determine whether I am
completely missing something or not. I will do my best to ensure that my
problem is as clearly articulated as possible since my code samples are very
large.
I am using Word 2003 SP3 on Windows XP SP2
I have set up a template document which creates a range of document styles.
This works fine. I also created an Outline list and linked the relevant
styles - worked great.
The problems started when I needed to use a second Outline list because I
found I needed more than 9 levels.
The template I am using is Global.
One option we have is to Copy the styles into the users Normal.dot using a
Macro however I am unsure whether this would resolve the issue I am having
with my numbering.
I have created 2 macros for my Outline lists - Outline_1 and Outline_2
Outline_1 was the original which updated 9 styles really well.
Due to needing to add a 6th level to one of our numbering sets I chose to
remove 2 styles from Outline_1 and replace one of them with the newly
required 6th style - so now, Outline_1 updates 8 styles with 1 blank level.
Outline_2 was created to allow the 2 styles from Outline_1 to still have
their number formatting.
I went through each set of code ensuring that Outline_1 referred to
ListTemplate(1) and Outline_2 referred to ListTemplate(2)
The problem occurs when I run both of these macro's together, even if they
are ran at different points within the code rather than immediately one after
the other.
I have also noticed that the same problem can occur when the codes are ran
manually although this is not always the case.
The Problem: The linked styles number level formatting is removed and the
styles revert back to simple paragraph types when the Outline macros are both
executed. Therefore when I use a style within my document there is no
numbering assigned.
Based upon my reading I have the following understanding:
1. To use multi-level numbering I need to link each level to a specified style
2. I can only use 9 levels of number formatting within 1 Outline list
3. I cannot increase the number of levels within an Outline list.
4. I can use multiple Outline lists within 1 document
What I have tried:
1. Using the ListNum ID Field
2. Creating 2 List Styles and linking them to the outline lists
3. Running the Outline macros in the same macro
4. Running the Outline macro's after each set of styles related to them have
been created
Therefore I am at a loss as to why defining 2 Outline lists with linked
styles would cause the number formatting to be removed rendering my numbering
useless.
I really appreciate anyone who can help me as I am now at a complete loss as
to where I should try next.
TIA
Vicky