![]() |
|
#1
|
|||
|
|||
|
I need to use IF fields that can toggle values between two values of the "Company" document property. I tried to do it using Quick Parts > Field > IF, and coded it to look like an example that used MERGEFIELD; I put DOCPROPERTY in the same position. It didn't work, but here's how it looks when I show the field coding:
{IF {DOCPROPERTY Company} = "Acme" "Star" "Meteor" \*MERGEFORMAT} The function should result in the brand "Star" if the company is Acme. If not, the brand is "Meteor". The result is currently: Company} Can someone explain how to use a docproperty in the IF field? |
|
#2
|
||||
|
||||
|
The DOCPROPERTY field needs to have its own field braces, created via Ctrl-F9 - you can't simply type the braces (i.e. '{ }').
__________________
Cheers, Paul Edstein [Fmr MS MVP - Word] |
|
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
Insert image based on document custom property
|
anandyrh | Word | 1 | 08-14-2013 12:08 AM |
| Custom Document Property Lost From Template | bhaughey | Word | 8 | 03-05-2013 02:11 PM |
QuickParts - custom document property
|
untttt | Word | 2 | 06-09-2011 05:24 PM |
check with condition
|
karti | Word | 2 | 03-15-2011 06:06 AM |
| Want to search for "class", replacing with document property | YetAnotherAuthor | Word | 0 | 10-30-2009 09:43 AM |