Group:  Microsoft Word ยป microsoft.public.word.mailmerge.fields
Thread: IncludeText - How to keep paragraph format of the source document

Geek News

IncludeText - How to keep paragraph format of the source document
mairsa 11/6/2008 11:24:01 PM
I'm trying to use the Includetext fieldcode to insert a bookmarked table from
document A into document B using Word 2007. I have tried both with and
without the /*Mergeformat switch.

The problem is that while the table and font format are preserved, the line
and paragraph spacing settings are not, and neither are the custom styles I'm
using. The text in the table is defaulting to Normal style with 1.15pt
linespace and 10pt after each paragraph.

Because the table in document A is quite big (48 pages!) and the text in it
has different line and paragraph spacing (depending on the contents of the
cells) I can't use mergeformat and reformat document B manually.

Any ideas? I'll be relieved if there is a relatively easy way to solve this
problem. I tried to write a macro too, but my vb skills are almost
non-existent!

Thanks in advance,


M




Re: IncludeText - How to keep paragraph format of the source document
"macropod" <macropod[ at ]invalid.invalid> 11/7/2008 12:49:57 AM
Hi mairsa,

The reason the formats are changing is that both documents are using the same Style names, but differently. Consequently, the
material from the source document (ir the one pointed to by the INCLUDTEXT field) is taking on the corresponding Style attributes in
the target document.

The best way to fix this is to either:
.. change the Style attributes in the target document to match those of the source document; or
.. use a set of attributes in the source document that don't exist in the target document for the linked material

Note that, if you adopt the first option, this will impact any text using those Styles in the target document.

--
Cheers
macropod
[MVP - Microsoft Word]


"mairsa" <mairsa[ at ]discussions.microsoft.com> wrote in message news:1AC4B628-4C1C-441C-A2B1-EB449E54453A[ at ]microsoft.com...
[Quoted Text]
> I'm trying to use the Includetext fieldcode to insert a bookmarked table from
> document A into document B using Word 2007. I have tried both with and
> without the /*Mergeformat switch.
>
> The problem is that while the table and font format are preserved, the line
> and paragraph spacing settings are not, and neither are the custom styles I'm
> using. The text in the table is defaulting to Normal style with 1.15pt
> linespace and 10pt after each paragraph.
>
> Because the table in document A is quite big (48 pages!) and the text in it
> has different line and paragraph spacing (depending on the contents of the
> cells) I can't use mergeformat and reformat document B manually.
>
> Any ideas? I'll be relieved if there is a relatively easy way to solve this
> problem. I tried to write a macro too, but my vb skills are almost
> non-existent!
>
> Thanks in advance,
>
>
> M
>
>
>
>

Re: IncludeText - How to keep paragraph format of the source docum
mairsa 11/7/2008 1:08:01 AM
Thanks a lot macropod, that made perfect sense!

"macropod" wrote:

[Quoted Text]
> Hi mairsa,
>
> The reason the formats are changing is that both documents are using the same Style names, but differently. Consequently, the
> material from the source document (ir the one pointed to by the INCLUDTEXT field) is taking on the corresponding Style attributes in
> the target document.
>
> The best way to fix this is to either:
> .. change the Style attributes in the target document to match those of the source document; or
> .. use a set of attributes in the source document that don't exist in the target document for the linked material
>
> Note that, if you adopt the first option, this will impact any text using those Styles in the target document.
>
> --
> Cheers
> macropod
> [MVP - Microsoft Word]
>
>
> "mairsa" <mairsa[ at ]discussions.microsoft.com> wrote in message news:1AC4B628-4C1C-441C-A2B1-EB449E54453A[ at ]microsoft.com...
> > I'm trying to use the Includetext fieldcode to insert a bookmarked table from
> > document A into document B using Word 2007. I have tried both with and
> > without the /*Mergeformat switch.
> >
> > The problem is that while the table and font format are preserved, the line
> > and paragraph spacing settings are not, and neither are the custom styles I'm
> > using. The text in the table is defaulting to Normal style with 1.15pt
> > linespace and 10pt after each paragraph.
> >
> > Because the table in document A is quite big (48 pages!) and the text in it
> > has different line and paragraph spacing (depending on the contents of the
> > cells) I can't use mergeformat and reformat document B manually.
> >
> > Any ideas? I'll be relieved if there is a relatively easy way to solve this
> > problem. I tried to write a macro too, but my vb skills are almost
> > non-existent!
> >
> > Thanks in advance,
> >
> >
> > M
> >
> >
> >
> >
>
>

Home | Search | Terms | Imprint Contact
Newsgroups Reader - provided by WiredBox.Net