Insert File - Formatting

R

Rosemary

Hi,

I'm building a folder which contains about 100 files that
will be used to build a document. Each time the document
is built, the user first opens a template form that has
some opening text. The template form has a macro that
asks the user to select from one of three fonts for the
document. Then, the user selects the individual files
they want to include in the body of the document by using
Insert - File.

Because the document can be in one of three fonts, I
would like to have the files that are inserted into the
template form take on the font that was selected by the
user for the template form. How can I do this?

Thanks,
 
M

macropod

Hi Rosemary,

If your source documents are correctly formatted using styles, rather than
being hard-formatted, and you define the same styles in the target document,
the inserted documents will adopt the style definitions in the target
document. Since you want to change the font, I'd recommend coding your macro
to apply that font to a suitable base style (eg Normal or Body Text).

Another approach would be to do the insertions via LINK or INCLUDETEXT
fields with a \* MERGEFORMAT switch.

Cheers
 
R

Rosemary

Hi,

I have formatted all the source documents using the same
styles as the target document, as you said. The font in
all the source documents and the macro template is
Courier New (only because I had to choose something). I
believe that means the macro I wrote needs to be modified
so it applies the selected font (Courier, TNR, or Arial)
to Normal style (which is my base style). Is this
correct?

Thanks!!
 
R

Rosemary

Hi again,

I modified my macro to apply the selected font to both
Normal and the Body Text styles. That did the trick!
Thank you for your help.

Regards,
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top