"INCLUDETEXT" and other field codes

  • Thread starter Thread starter Joy Raman
  • Start date Start date
J

Joy Raman

Hi,

I am using "INCLUDETEXT" with a bookmark to pull in
information from another document. I use the bookmark
feature with "INCLUDETEXT" as I dont have to manage many
individual files of subdocuments. The text that I am
pulling in is a table. In other words I pull in one
tablefor every "INCLUDETEXT" statement that I have. I have
about 200 tables in the source data document. I am trying
to present these tables in the master document in a
variety of categories. So I may pull in one table in 3
different places, one for say "location", "type"
and "price". So I need 3 "INCLUDETEXT" statements. What I
would like to do is have is just one "INCLUDETEXT"
statement per category. Like a for loop that pulls in
these tables if it meets certain criteria. I know there
are filed codes like "COMPARE" and "IF". I couldnt fing
anything in help that tells me how to use them. I am not
even sure if thats the right approach. I am just looking
for a clever way to avoid putting in about 300 -
400 "INCLUDETEXT" statemenmt in my master. Do I have to go
the VBA route on this? Thanks
 
Bonjour,

Dans son message, < Joy Raman > écrivait :
In this message, < Joy Raman > wrote:

|| Hi,
||
|| I am using "INCLUDETEXT" with a bookmark to pull in
|| information from another document. I use the bookmark
|| feature with "INCLUDETEXT" as I dont have to manage many
|| individual files of subdocuments. The text that I am
|| pulling in is a table. In other words I pull in one
|| tablefor every "INCLUDETEXT" statement that I have. I have
|| about 200 tables in the source data document. I am trying
|| to present these tables in the master document in a
|| variety of categories. So I may pull in one table in 3
|| different places, one for say "location", "type"
|| and "price". So I need 3 "INCLUDETEXT" statements. What I
|| would like to do is have is just one "INCLUDETEXT"
|| statement per category. Like a for loop that pulls in
|| these tables if it meets certain criteria. I know there

How will the criteria be checked for validity?
Also, I do not think I fully understand.... If you need the table in 3
places in the same document, you will have to use 3 INCLUDETEXT, or, enclose
the first INCLUDETEXT in a bookmark, and use REF fields where you want to
show the same table...

|| are filed codes like "COMPARE" and "IF". I couldnt fing
|| anything in help that tells me how to use them. I am not
|| even sure if thats the right approach. I am just looking
|| for a clever way to avoid putting in about 300 -
|| 400 "INCLUDETEXT" statemenmt in my master. Do I have to go
|| the VBA route on this? Thanks

--
Salut!
_______________________________________
Jean-Guy Marcil - Word MVP
(e-mail address removed)
Word MVP site: http://www.word.mvps.org
 
Hi all
When I want to open a "new" document in word 2002, a Task Pane let me select
from my recent documents and also offering "New e-mail message"
When I select this option it is give me the same format as Outlook does when
opening a "new message"
I can fill the "To" and all the top side of this format including the
"subject" but when try to write the message part, all keyboard entries is
appearing as "x" and not the letters what I tried to type. Tried
"Format/Font" does not working. If I try "Paragraph" and even if I not
changing anything it is came up with a message "paragraph is too large"
I am using a screen reader / I am visually impaired/ and this aid can read
the "x" with the actual keyboard entries.
Can anybody help?
Thank you
George
 
Thanks for replying. Each table has information about a
house. A house may be a 3 bedroom, in France and sell for
200,000$. So in my master document if I wanted to show all
houses in France I need one IncludeText per home. Instead
I would like one IncludeText per category, in this case
France. So the criteria being checked may be something
like "Does the bookmark name has France in it" in which
case I would like the IncludeText to be executed. The I
would like to loop back and do the check again for the
next bookmark name. Basically I would like to assign
attributes to the table(home) and then check the
attributes in the Master document. 1. Homes in "France" or
2. Homes that are "3 Bedroom" or 3. Homes that are less
than 300,000$. Hope I have explained things better. Im
almsot trying to create a flat file database within Word
and then trying to include the table(home) if the criteria
is met. Thanks
 
Bonjour,

Dans son message, < (e-mail address removed) > écrivait :

| Thanks for replying. Each table has information about a

Where is each table? One document per table? Many documents? If so, why/how
are the docuemnts created? (i.e. what is the factor that decides their
content?)

| house. A house may be a 3 bedroom, in France and sell for
| 200,000$. So in my master document if I wanted to show all
| houses in France I need one IncludeText per home. Instead
| I would like one IncludeText per category, in this case
| France. So the criteria being checked may be something
| like "Does the bookmark name has France in it" in which

I do not think you can do that with IF and INCLUDETEXT fields. If I remember
correctly, you cannot examine the content of a bookmark name with an IF
field. It is all or nothing, as in [ IF Bookmark = "ThisText" then THIS else
THAT" ], you cannot say [ IF Bookmark CONTAINS "ThisText" then THIS else
THAT" ].
And, I don't even think you can use an IF and INCLUDETEXT fields like that.

| case I would like the IncludeText to be executed. The I
| would like to loop back and do the check again for the

Basically, what you need is:

(IF DocB HAS a Bookmark with "France" in its name, THEN, INCLUDETEXT DocB,
That Bookmark)
And what if many bookmarks have France in their names?
And then you need to loop, and as far as I know, you cannot execute loops
with fields.

| next bookmark name. Basically I would like to assign
| attributes to the table(home) and then check the
| attributes in the Master document. 1. Homes in "France" or
| 2. Homes that are "3 Bedroom" or 3. Homes that are less
| than 300,000$. Hope I have explained things better. Im
| almsot trying to create a flat file database within Word
| and then trying to include the table(home) if the criteria
| is met. Thanks

Looks like you will have to go the VBA way.... Are you familiar with macros?
Do you want to go that way?
Unless someone else comes up with a clever plan! (Like Balderick in Black
Adder!)

--
Salut!
_______________________________________
Jean-Guy Marcil - Word MVP
(e-mail address removed)
Word MVP site: http://www.word.mvps.org
 
Back
Top