Most of the time, the techniques you'll see described for conditionally displaying content involve changing the content's formatting to/from 'hidden text'. That is unreliable as the user may have Word set to display hidden text (which you can do just by clicking on the ¶ symbol on the Ribbon's Home tab) and/or to print hidden text (which Word can do even when you can't see it on screen). The only 100% reliable way is to not store the text in the document body. Depending on your requirements, you might instead store it in a document property, a document variable, another document, or even in some VBA code. Without knowing which approach you'd prefer to take, we can't give more specific advice. Read up on the alternatives, then let us know how you'd like to proceed.
__________________
Cheers,
Paul Edstein
[Fmr MS MVP - Word]
|