M
Michael Moser
Hi all,
I am not sure, whether this is the right news group for my question -
if there is a more suitable NG please advise!
I am trying to display some text in a word document depending on the
setting of a document property field..
I defined the document property under File => Properties => Custom
tab.
And now, on the first page of my document I am trying do add a
paragraph that should display a warning as long as the document
property has a certain value:
I tried to phrase that condition as a formula using Insert => Field =>
Formula but was unable to come up with a working formula for my
purpose: I am trying to phrase something like:
IF ({ DOCPROPERTY "status" } == "work in progress") {
<Some text here that is only displayed (and printed) if the document
property has the corresponding value e.g.>
Note: this document is still work in progress and will most likely
change. For feedback contact ...
}
That text should later be hidden once the document status changes but
should re-appear if the status is again set to "work in progress" e.g.
while the document becomes regularly revised.
How can one refer to a document property in a formula? Or are there
other ways to do achieve this? Some form of macro maybe?
Hints and pointers welcome!
Cheers,
Michael
I am not sure, whether this is the right news group for my question -
if there is a more suitable NG please advise!
I am trying to display some text in a word document depending on the
setting of a document property field..
I defined the document property under File => Properties => Custom
tab.
And now, on the first page of my document I am trying do add a
paragraph that should display a warning as long as the document
property has a certain value:
I tried to phrase that condition as a formula using Insert => Field =>
Formula but was unable to come up with a working formula for my
purpose: I am trying to phrase something like:
IF ({ DOCPROPERTY "status" } == "work in progress") {
<Some text here that is only displayed (and printed) if the document
property has the corresponding value e.g.>
Note: this document is still work in progress and will most likely
change. For feedback contact ...
}
That text should later be hidden once the document status changes but
should re-appear if the status is again set to "work in progress" e.g.
while the document becomes regularly revised.
How can one refer to a document property in a formula? Or are there
other ways to do achieve this? Some form of macro maybe?
Hints and pointers welcome!
Cheers,
Michael