I'm working on a VB app to generate one big master Word document that is a compilation of many other individual Word docs. I'm doing this by repeatedly executing the "InsertFile" method.
I want the characteristics of the individual docs retained in the new master doc. (i.e., one master document that is really a bunch of independent documents stacked on top of one another, each with its original formatting, styles, tab stops, margin settings, etc. retained.)
I have already had some help on a different forum to make sure each doc's header, footer, and page # info was retained (by setting "LinkToPrevious = False", etc.); so that part is working fine.
However, I also want to make sure that each original doc's fonts, margin settings, tab stops, etc. are also retained in the new master doc.
The main problem that seems to be happening is that the default font size of the master doc seems to be overriding the font size in many places of the inserted doc.
Example: The default font size in Word is 12 (Times New Roman). When I insert the new doc (even after inserting a section break first), everywhere that the font is Times New Roman 10, I get Times New Roman 12 in the new doc ... (all other font sizes from the original doc are retained).
So, I'm trying to find out how to make Word NOT use the default font. Any help is appreciated ...
The real question is:
What VBA statements can I use to totally obliterate any "influence" a previous document might have on the new document being inserted?
I want the characteristics of the individual docs retained in the new master doc. (i.e., one master document that is really a bunch of independent documents stacked on top of one another, each with its original formatting, styles, tab stops, margin settings, etc. retained.)
I have already had some help on a different forum to make sure each doc's header, footer, and page # info was retained (by setting "LinkToPrevious = False", etc.); so that part is working fine.
However, I also want to make sure that each original doc's fonts, margin settings, tab stops, etc. are also retained in the new master doc.
The main problem that seems to be happening is that the default font size of the master doc seems to be overriding the font size in many places of the inserted doc.
Example: The default font size in Word is 12 (Times New Roman). When I insert the new doc (even after inserting a section break first), everywhere that the font is Times New Roman 10, I get Times New Roman 12 in the new doc ... (all other font sizes from the original doc are retained).
So, I'm trying to find out how to make Word NOT use the default font. Any help is appreciated ...
The real question is:
What VBA statements can I use to totally obliterate any "influence" a previous document might have on the new document being inserted?