Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.word.mailmerge.fields
|
|||
|
|||
![]()
Hello,
I have a document that needs to pull in other documents based off of what is in the Subject Document Property, and also have the Table of Contents and List of Tables update properly (several headings and tables get included with the inserted document). If I use just the INCLUDETEXT on its own, it seems to work pretty well...the doc is inserted, the headings styles look correct, and the TOC and LOT update properly. My field: { INCLUDETEXT "BASE.doc" } The proper TOC looks similar to: 1.1 Introduction ... 7 1.2 Base Config ..... 7 1.3 Base Config Desc ...8 1.3.1 Desc A ...8 1.3.2 Desc B ...9 However, if I put this INCLUDETEXT inside an IF statement, then things go awry. The first heading in the included doc doesn't come out right, but next heading in the included doc seems all right? The added tables do not show up in the LOT at all when updated. And the TOC is very strange...where the messed up heading occurred, I have something similar to: { if { DOCPROPERTY "Subject" } = "BASE" { INCLUDETEXT "BASE.doc" } } 1.1 Introduction ... 7 1.1 .......... 7 1.1 .......... 7 1.1.1 7 1.1.1 7 1.1.1 7 1.1.1 7 1.1.1 7 1.1.1 7 1.2 Base Config ..... 7 1.3 Base Config Desc ...8 1.3.1 Desc A ...8 1.3.2 Desc B ...9 Beside the fact that this looks odd (should look like example above, w/out the IF), it doesn't match what the doc is actually showing. Help is greatly appreciated! This would be wonderful it would actually work! I saw similar posts, and tried several variations, but didn't find anything that really matched this (or worked). Thanks, SDJWalls |
Thread Tools | |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
embedding jpgs | Microsoft Word Help | |||
embedding a file | Page Layout | |||
PDF embedding | Microsoft Word Help | |||
embedding fonts | Microsoft Word Help | |||
Possible to {includetext} without taking on styles of target? | Microsoft Word Help |