Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.word.mailmerge.fields
|
|||
|
|||
![]()
If the bookmark does not exist a further test is required
{ IF { REF Number } "Error!*" "{ IF { REF Number } "" " Account Number { REF Number }" } } where Number is the bookmark name. -- Graham Mayor - Word MVP My web site www.gmayor.com Word MVP web site http://word.mvps.org "Herb Tyson [MVP]" wrote in message ... When I tested that here a while ago, I found that if [bookmark] doesn't exist, the expression resolves as FALSE. I'm guessing {Ref [bookmark]} must return an error message (internally). So, if the account number doesn't appear, the user will need to bookmark a point in the document, so it can properly compare as TRUE to "" when there is no account number. -- Herb Tyson MS MVP Author of the Word Bible Blog: http://word.herbtyson.com Web: http://www.herbtyson.com "Doug Robbins - Word MVP" wrote in message ... { IF { REF [bookmark] } "" " Account Number { REF [bookmark] }" "" } You must use Ctrl+F9 to insert each pair of field delimiters { } and use A;t+F9 to toggle off their display. -- Hope this helps. Please reply to the newsgroup unless you wish to avail yourself of my services on a paid consulting basis. Doug Robbins - Word MVP, originally posted via msnews.microsoft.com "DeeDeeCee" wrote in message ... I have a letter template in which the " xxxx" line sometimes should include an account number. I can put in a REF field that will automatically enter the account number from another place in the document, with a bookmark around it. I want to have the language "Account Number" in front of the actual number in the xxxx line, if I do so. The problem is that sometimes there is no account number, and in those cases I DON'T want the words "Account Number" to appear, as there will be nothing after it. Thanks for any advice. ddc Is there any way to set up the template and/or the REF field so that if there is an account number, the words "Account Number" appear, followed by the actual number...but if there is no account number in the bookmark, then nothing at all appears in the xxxx line? |
Reply |
Thread Tools | |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
How to change the content of field "Company" ? | Microsoft Word Help | |||
how do I set up a "expand/collapse" or "show/hide" field in Word | Microsoft Word Help | |||
"Print current page" should have a "+n pages" field. | Microsoft Word Help | |||
"h" and "t" allowed in form Number field | Microsoft Word Help | |||
New field for Word: {SCREENTIP "DisplayText" "TipText"} | Microsoft Word Help |