Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.word.docmanagement
|
|||
|
|||
Hide text that I type when the following mail merge field is empty
You can do this with conditional fields eg
{Mergefield Thepreviousfield}{IF {Mergefield phone} "" "¶ Phone: {Mergefield phone}"}{IF {Mergefield email} "" "¶ Email: {Mergefield email}"} The field brackets {} are inserted with CTRL+F9. The fieldnames are those from your data. Press enter ONLY where you see ¶ and watch the quotes are correctly placed. The line break, text and field are only inserted when the fields contain data. -- Graham Mayor - Word MVP My web site www.gmayor.com Word MVP web site http://word.mvps.org Netti wrote: I am using the mail merge feature to create a directory where I type titles that introduces the information that is included in the mail merge fields (e.g., I've typed "Phone:" Mail merge field for phone, then "Email:" Mail merge field for email, etc.). Is it possible to create some type of macro or instruction to hide the selected text "Phone:" when the following Mail merge field is empty? |
#2
Posted to microsoft.public.word.docmanagement
|
|||
|
|||
Hide text that I type when the following mail merge field is e
I was trying this out and before I really had a chance to play around and
figure out exactly how it should look in my document the field brackets stopped working. Now for some reason when I press CTRL and F9 nothing happens, did I somehow press something that changed the function of the keys? "Graham Mayor" wrote: You can do this with conditional fields eg {Mergefield Thepreviousfield}{IF {Mergefield phone} "" "¶ Phone: {Mergefield phone}"}{IF {Mergefield email} "" "¶ Email: {Mergefield email}"} The field brackets {} are inserted with CTRL+F9. The fieldnames are those from your data. Press enter ONLY where you see ¶ and watch the quotes are correctly placed. The line break, text and field are only inserted when the fields contain data. -- Graham Mayor - Word MVP My web site www.gmayor.com Word MVP web site http://word.mvps.org Netti wrote: I am using the mail merge feature to create a directory where I type titles that introduces the information that is included in the mail merge fields (e.g., I've typed "Phone:" Mail merge field for phone, then "Email:" Mail merge field for email, etc.). Is it possible to create some type of macro or instruction to hide the selected text "Phone:" when the following Mail merge field is empty? |
#3
Posted to microsoft.public.word.docmanagement
|
|||
|
|||
Hide text that I type when the following mail merge field is e
I just tried it by going to "insert" and then "field" and it worked. Thanks
for the help. "Netti" wrote: I was trying this out and before I really had a chance to play around and figure out exactly how it should look in my document the field brackets stopped working. Now for some reason when I press CTRL and F9 nothing happens, did I somehow press something that changed the function of the keys? "Graham Mayor" wrote: You can do this with conditional fields eg {Mergefield Thepreviousfield}{IF {Mergefield phone} "" "¶ Phone: {Mergefield phone}"}{IF {Mergefield email} "" "¶ Email: {Mergefield email}"} The field brackets {} are inserted with CTRL+F9. The fieldnames are those from your data. Press enter ONLY where you see ¶ and watch the quotes are correctly placed. The line break, text and field are only inserted when the fields contain data. -- Graham Mayor - Word MVP My web site www.gmayor.com Word MVP web site http://word.mvps.org Netti wrote: I am using the mail merge feature to create a directory where I type titles that introduces the information that is included in the mail merge fields (e.g., I've typed "Phone:" Mail merge field for phone, then "Email:" Mail merge field for email, etc.). Is it possible to create some type of macro or instruction to hide the selected text "Phone:" when the following Mail merge field is empty? |
#4
Posted to microsoft.public.word.docmanagement
|
|||
|
|||
Hide text that I type when the following mail merge field is e
Many keyboards - mine included - have an F Lock button which allows
switching between F key function sets. You can set the default F lock to use the standard F Key commands rather than the alternative command set with a registry patch. The actual patch depends on the keyboard - see http://www.google.co.uk/search?sourc...ock+on+startup -- Graham Mayor - Word MVP My web site www.gmayor.com Word MVP web site http://word.mvps.org Netti wrote: I was trying this out and before I really had a chance to play around and figure out exactly how it should look in my document the field brackets stopped working. Now for some reason when I press CTRL and F9 nothing happens, did I somehow press something that changed the function of the keys? "Graham Mayor" wrote: You can do this with conditional fields eg {Mergefield Thepreviousfield}{IF {Mergefield phone} "" "¶ Phone: {Mergefield phone}"}{IF {Mergefield email} "" "¶ Email: {Mergefield email}"} The field brackets {} are inserted with CTRL+F9. The fieldnames are those from your data. Press enter ONLY where you see ¶ and watch the quotes are correctly placed. The line break, text and field are only inserted when the fields contain data. -- Graham Mayor - Word MVP My web site www.gmayor.com Word MVP web site http://word.mvps.org Netti wrote: I am using the mail merge feature to create a directory where I type titles that introduces the information that is included in the mail merge fields (e.g., I've typed "Phone:" Mail merge field for phone, then "Email:" Mail merge field for email, etc.). Is it possible to create some type of macro or instruction to hide the selected text "Phone:" when the following Mail merge field is empty? |
Reply |
Thread Tools | |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
How do I avoid a blank line if a mail merge field is empty? | Mailmerge | |||
Delete text precending an empty/zeroed merge field? | Mailmerge | |||
In Word 2003 when mail merge how do I delete an empty field? | Mailmerge | |||
How do I omit an empty date merge field? | Microsoft Word Help | |||
Mail merge field isn't displaying all the text in a field. Can I . | Mailmerge |