Is it possible to selectively print or hide pages based on a linked field?

B

bob

I am looking to print pages that have linked information set to a
particular value. Can I suppress the printing or hide the page if a
particular linked item has a blank or space?
 
M

macropod

Hi Bob,

Yes, it is possible to do this.

Suppose you have a bookmark named 'BkMrk', that nominally refers to a range
of text, and the range may or may not be empty.

Elsewhere in the document, you have some text that should only be printed if
the bookmark is empty, and a different set of text that should only be
printed if the bookmark is not empty. In that case, you can use a Word field
to control the output. The syntax goes like:
{IF{REF BkMrk} = "" "Your true text goes here" "Your false text goes here"}
If you want, either the true text or the false text can be nothing at all -
just a pair of double quotes. Either or both results can also span as many
paragraphs etc as you want, including tables and images.

No vba is needed for this. One important point to note is that field code
braces (i.e. '{ }') in Word are created via Ctrl-F9 - you can't simply type
them.

Cheers
 

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

Top