Conditional text

  • Thread starter Thread starter Treb Sremiulp
  • Start date Start date
T

Treb Sremiulp

Hi,

I have several paragraphs of text in one document. Is it possible to print
paragraphs conditionally? Definining a custom document property with a value
(e.g.: INTERNAL=TRUE) and then print only the paragraphs where a linked
check (like IF INTERNAL=TRUE) meets the criterium.

Or maybe another solution?

Thanks in advance.
-- Bert
 
Bert,

Yes this is possible. You and use an IF field with a
nested DOCPROPERTY field and nested INCLUDETEXT Fields.

For example, lets call your document with the paragraphs
C:\Test. Bookmark one of the paragraphs A and the other
paragraph as B.

In your other document create the custom documment
property Internal and give it the value True.

The following field will return the paragraphs bookmarked
A if Internal is True it will return the paragraphs
bookmarked B if Internal is any other value (e.g., False).

{ IF { DOCPROPERTY Internal }
= "True"{INCLUDETEXT "C:\Test" A}{INCLUDETEXT "C:\Test" B}}

HTH
 
Answered in another newsgroup. Please do not multipost.

In the Microsoft Word newsgroups it is considered bad form to post separate
messages to multiple newsgroups. If you need to post in more than one forum
(unusual) please post a single message with both forums in the header of
that single message. That way (1) your question and the various answers stay
together, (2) less space is used on the news servers, (3) less bandwidth is
used on the Internet, (4) you only have to check one forum for answers that
appear in both forums, and (5) you won't unnecessarily annoy the people you
are asking for help. This isn't meant to criticize you. We were all
beginners once and the only way to learn is to try. (BTW, a number of the
Microsoft newsgroups don't want posting in more than one newsgroup, period.
Check the FAQ.)
Take a look on the MVP FAQ website under "getting help" for more reasons ase
well as other suggestions for getting answers more easily and quickly. <URL:
http://www.mvps.org/word/FindHelp/Posting.htm>



--

Charles Kenyon

Word New User FAQ & Web Directory: http://addbalance.com/word

Intermediate User's Guide to Microsoft Word (supplemented version of
Microsoft's Legal Users' Guide) http://addbalance.com/usersguide

See also the MVP FAQ: http://www.mvps.org/word which is awesome!
--------- --------- --------- --------- --------- ---------
This message is posted to a newsgroup. Please post replies
and questions to the newsgroup so that others can learn
from my ignorance and your wisdom.
 

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

Back
Top