Microsoft Office Forums

Go Back   Microsoft Office Forums > >

Reply
 
Thread Tools Display Modes
  #1  
Old 01-28-2014, 04:12 PM
ChrisBrewster ChrisBrewster is offline Use document property as condition in IF field? Windows 7 64bit Use document property as condition in IF field? Office 2010 64bit
Advanced Beginner
Use document property as condition in IF field?
 
Join Date: Jan 2014
Posts: 36
ChrisBrewster is on a distinguished road
Default Use document property as condition in IF field?

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?
Reply With Quote
  #2  
Old 01-28-2014, 10:19 PM
macropod's Avatar
macropod macropod is offline Use document property as condition in IF field? Windows 7 32bit Use document property as condition in IF field? Office 2010 32bit
Administrator
 
Join Date: Dec 2010
Location: Canberra, Australia
Posts: 21,956
macropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond repute
Default

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]
Reply With Quote
  #3  
Old 01-29-2014, 10:35 AM
Charles Kenyon Charles Kenyon is offline Use document property as condition in IF field? Windows 7 64bit Use document property as condition in IF field? Office 2010 32bit
Moderator
 
Join Date: Mar 2012
Location: Sun Prairie, Wisconsin
Posts: 9,082
Charles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant future
Default

I expect that Paul's suggestiong solves your problem. Otherwise, you can find more documentation on and examples of using the IF Field here: IF Field
Reply With Quote
Reply

Thread Tools
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
Use document property as condition in IF field? 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
Use document property as condition in IF field? QuickParts - custom document property untttt Word 2 06-09-2011 05:24 PM
Use document property as condition in IF field? 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

Other Forums: Access Forums

All times are GMT -7. The time now is 01:38 PM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.
Search Engine Optimisation provided by DragonByte SEO (Lite) - vBulletin Mods & Addons Copyright © 2024 DragonByte Technologies Ltd.
MSOfficeForums.com is not affiliated with Microsoft