R
Rick Martin
I have created a set of macros that use the master/subdocument functions to
create and manage multi-chapter documents. These have worked fine (with minor
modifications) since Word 97. As suggested in the subject line, I use the
Subdocuments.AddFromFile method to insert subdocs into the master document.
Because, the individual chapters use a different template than the master
document, the user normally gets a message box notifying her of this fact
(answer OK). Also, because the two templates have the same set of styles,
another message box is displayed asking whether the styles of the subdocument
should be renamed. I tell my users to answer "No to All" so that the styles
from the master document are used throughout.
This functionality has worked consistently until some of my users upgraded
to Office 2003. Now, when they insert a new chapter (subdocument) file, these
message boxes do not appear, and the styles from the subdocument are renamed,
resulting in multiple versions of the same style in the document.
The odd thing is that I also use Word 2003, and, on my machine, the macro
functions as it always did. I cannot see any obvious differences in the Word
settings between my machine and the others.
Does anyone know what might control this behavior, either within Word or in
the VBA environment? Any suggestions as to how I can make sure styles in a
subdocument are not renamed?
Tanks.
Rick Martin
create and manage multi-chapter documents. These have worked fine (with minor
modifications) since Word 97. As suggested in the subject line, I use the
Subdocuments.AddFromFile method to insert subdocs into the master document.
Because, the individual chapters use a different template than the master
document, the user normally gets a message box notifying her of this fact
(answer OK). Also, because the two templates have the same set of styles,
another message box is displayed asking whether the styles of the subdocument
should be renamed. I tell my users to answer "No to All" so that the styles
from the master document are used throughout.
This functionality has worked consistently until some of my users upgraded
to Office 2003. Now, when they insert a new chapter (subdocument) file, these
message boxes do not appear, and the styles from the subdocument are renamed,
resulting in multiple versions of the same style in the document.
The odd thing is that I also use Word 2003, and, on my machine, the macro
functions as it always did. I cannot see any obvious differences in the Word
settings between my machine and the others.
Does anyone know what might control this behavior, either within Word or in
the VBA environment? Any suggestions as to how I can make sure styles in a
subdocument are not renamed?
Tanks.
Rick Martin