A
Associates
Hi,
I have an issue with style and formatting in word template. In the template,
i have set a style (outlined number) called "Section Heading 1". Then, i have
created an autotext which has the same style with the same name. So when i
insert the autotext into the template, i got 2 of the same style with
different names. The style got inserted into the template has its name
changed to "Section Heading 1 + justified".
The following code i use to insert the autotext
ActiveDocument.AttachedTemplate.AutoTextEntries("sections").Insert Where:= _
Selection.Range, RichText:=True
My question is how do i keep it to the same style name because at the end of
the day, there should be only one style called "Section Heading 1". I think
word adds "+ justified" at the end of "Section Heading 1" because "Section
Heading 1" already exists. Is there any way of stopping this for word 03?
Thank you in advance
I have an issue with style and formatting in word template. In the template,
i have set a style (outlined number) called "Section Heading 1". Then, i have
created an autotext which has the same style with the same name. So when i
insert the autotext into the template, i got 2 of the same style with
different names. The style got inserted into the template has its name
changed to "Section Heading 1 + justified".
The following code i use to insert the autotext
ActiveDocument.AttachedTemplate.AutoTextEntries("sections").Insert Where:= _
Selection.Range, RichText:=True
My question is how do i keep it to the same style name because at the end of
the day, there should be only one style called "Section Heading 1". I think
word adds "+ justified" at the end of "Section Heading 1" because "Section
Heading 1" already exists. Is there any way of stopping this for word 03?
Thank you in advance