Reply
 
Thread Tools Display Modes
  #1   Report Post  
Posted to microsoft.public.word.mailmerge.fields
Anvil22 Anvil22 is offline
external usenet poster
 
Posts: 11
Default merg document formatting

I have a word document (catalogue) around one of the fields I would like to
put a parenthesis. (nick_name). If there isnt a nick name I would like the
space left blank without the parentheses. I have tried if then but cant seem
to get it to work. Can anyone help?
Thanks
Dick


  #2   Report Post  
Posted to microsoft.public.word.mailmerge.fields
Doug Robbins - Word MVP Doug Robbins - Word MVP is offline
external usenet poster
 
Posts: 8,832
Default merg document formatting

Use the following field construction

{ IF { MERGEFIELD nick_name } "" "({ MERGEFIELD nick_name })" }

You must use Ctrl+F9 for each pair of field delimiters { } and you use
Alt+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

"Anvil22" wrote in message
news
I have a word document (catalogue) around one of the fields I would like
to
put a parenthesis. (nick_name). If there isnt a nick name I would like
the
space left blank without the parentheses. I have tried if then but cant
seem
to get it to work. Can anyone help?
Thanks
Dick


  #3   Report Post  
Posted to microsoft.public.word.mailmerge.fields
Anvil22 Anvil22 is offline
external usenet poster
 
Posts: 11
Default merg document formatting

Doug this works great. However is the a way to close the blank line if no
nick name is used.
I'm not sure I'm explaining it correctly. Let the try with an example

Thomas
(tom)
Mary - Wife

Thomas
blank line - no nick name
mary

Could it read
Thomas
mary

Thank you
Dick


"Doug Robbins - Word MVP" wrote:

Use the following field construction

{ IF { MERGEFIELD nick_name } "" "({ MERGEFIELD nick_name })" }

You must use Ctrl+F9 for each pair of field delimiters { } and you use
Alt+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

"Anvil22" wrote in message
news
I have a word document (catalogue) around one of the fields I would like
to
put a parenthesis. (nick_name). If there isnt a nick name I would like
the
space left blank without the parentheses. I have tried if then but cant
seem
to get it to work. Can anyone help?
Thanks
Dick


  #4   Report Post  
Posted to microsoft.public.word.mailmerge.fields
Doug Robbins - Word MVP Doug Robbins - Word MVP is offline
external usenet poster
 
Posts: 8,832
Default merg document formatting

In that case use

{ IF { MERGEFIELD nick_name } "" "({ MERGEFIELD nick_name })¶
{ MERGEFIELD wife_name }" { MERGEFIELD wife_name } }

Where the ¶ appears above, press the Enter key or Shift+Enter

--
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

"Anvil22" wrote in message
...
Doug this works great. However is the a way to close the blank line if no
nick name is used.
I'm not sure I'm explaining it correctly. Let the try with an example

Thomas
(tom)
Mary - Wife

Thomas
blank line - no nick name
mary

Could it read
Thomas
mary

Thank you
Dick


"Doug Robbins - Word MVP" wrote:

Use the following field construction

{ IF { MERGEFIELD nick_name } "" "({ MERGEFIELD nick_name })" }

You must use Ctrl+F9 for each pair of field delimiters { } and you use
Alt+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

"Anvil22" wrote in message
news
I have a word document (catalogue) around one of the fields I would
like
to
put a parenthesis. (nick_name). If there isnt a nick name I would like
the
space left blank without the parentheses. I have tried if then but cant
seem
to get it to work. Can anyone help?
Thanks
Dick


  #5   Report Post  
Posted to microsoft.public.word.mailmerge.fields
macropod[_2_] macropod[_2_] is offline
external usenet poster
 
Posts: 2,059
Default merg document formatting

Or perhaps more simply:
{IF{MERGEFIELD nick_name} "" "({ MERGEFIELD nick_name })¶
"}{MERGEFIELD wife_name}

--
Cheers
macropod
[Microsoft MVP - Word]


"Doug Robbins - Word MVP" wrote in message ...
In that case use

{ IF { MERGEFIELD nick_name } "" "({ MERGEFIELD nick_name })¶
{ MERGEFIELD wife_name }" { MERGEFIELD wife_name } }

Where the ¶ appears above, press the Enter key or Shift+Enter

--
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

"Anvil22" wrote in message ...
Doug this works great. However is the a way to close the blank line if no
nick name is used.
I'm not sure I'm explaining it correctly. Let the try with an example

Thomas
(tom)
Mary - Wife

Thomas
blank line - no nick name
mary

Could it read
Thomas
mary

Thank you
Dick


"Doug Robbins - Word MVP" wrote:

Use the following field construction

{ IF { MERGEFIELD nick_name } "" "({ MERGEFIELD nick_name })" }

You must use Ctrl+F9 for each pair of field delimiters { } and you use
Alt+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

"Anvil22" wrote in message
news I have a word document (catalogue) around one of the fields I would like
to
put a parenthesis. (nick_name). If there isnt a nick name I would like
the
space left blank without the parentheses. I have tried if then but cant
seem
to get it to work. Can anyone help?
Thanks
Dick





  #6   Report Post  
Posted to microsoft.public.word.mailmerge.fields
Anvil22 Anvil22 is offline
external usenet poster
 
Posts: 11
Default merg document formatting

Doug, I beleive that will solve the problem
Thank you.
Dick
how does on contacct you.

"Doug Robbins - Word MVP" wrote:

In that case use

{ IF { MERGEFIELD nick_name } "" "({ MERGEFIELD nick_name })¶
{ MERGEFIELD wife_name }" { MERGEFIELD wife_name } }

Where the ¶ appears above, press the Enter key or Shift+Enter

--
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

"Anvil22" wrote in message
...
Doug this works great. However is the a way to close the blank line if no
nick name is used.
I'm not sure I'm explaining it correctly. Let the try with an example

Thomas
(tom)
Mary - Wife

Thomas
blank line - no nick name
mary

Could it read
Thomas
mary

Thank you
Dick


"Doug Robbins - Word MVP" wrote:

Use the following field construction

{ IF { MERGEFIELD nick_name } "" "({ MERGEFIELD nick_name })" }

You must use Ctrl+F9 for each pair of field delimiters { } and you use
Alt+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

"Anvil22" wrote in message
news I have a word document (catalogue) around one of the fields I would
like
to
put a parenthesis. (nick_name). If there isnt a nick name I would like
the
space left blank without the parentheses. I have tried if then but cant
seem
to get it to work. Can anyone help?
Thanks
Dick


  #7   Report Post  
Posted to microsoft.public.word.mailmerge.fields
Anvil22 Anvil22 is offline
external usenet poster
 
Posts: 11
Default merg document formatting

Unbelivable - thank you.
Dick

"macropod" wrote:

Or perhaps more simply:
{IF{MERGEFIELD nick_name} "" "({ MERGEFIELD nick_name })¶
"}{MERGEFIELD wife_name}

--
Cheers
macropod
[Microsoft MVP - Word]


"Doug Robbins - Word MVP" wrote in message ...
In that case use

{ IF { MERGEFIELD nick_name } "" "({ MERGEFIELD nick_name })¶
{ MERGEFIELD wife_name }" { MERGEFIELD wife_name } }

Where the ¶ appears above, press the Enter key or Shift+Enter

--
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

"Anvil22" wrote in message ...
Doug this works great. However is the a way to close the blank line if no
nick name is used.
I'm not sure I'm explaining it correctly. Let the try with an example

Thomas
(tom)
Mary - Wife

Thomas
blank line - no nick name
mary

Could it read
Thomas
mary

Thank you
Dick


"Doug Robbins - Word MVP" wrote:

Use the following field construction

{ IF { MERGEFIELD nick_name } "" "({ MERGEFIELD nick_name })" }

You must use Ctrl+F9 for each pair of field delimiters { } and you use
Alt+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

"Anvil22" wrote in message
news I have a word document (catalogue) around one of the fields I would like
to
put a parenthesis. (nick_name). If there isnt a nick name I would like
the
space left blank without the parentheses. I have tried if then but cant
seem
to get it to work. Can anyone help?
Thanks
Dick



.

  #8   Report Post  
Posted to microsoft.public.word.mailmerge.fields
Doug Robbins - Word MVP Doug Robbins - Word MVP is offline
external usenet poster
 
Posts: 8,832
Default merg document formatting

You can contact me by email at dkr[atsymbol]mvps[dot]org

--
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

"Anvil22" wrote in message
...
Doug, I beleive that will solve the problem
Thank you.
Dick
how does on contacct you.

"Doug Robbins - Word MVP" wrote:

In that case use

{ IF { MERGEFIELD nick_name } "" "({ MERGEFIELD nick_name })¶
{ MERGEFIELD wife_name }" { MERGEFIELD wife_name } }

Where the ¶ appears above, press the Enter key or Shift+Enter

--
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

"Anvil22" wrote in message
...
Doug this works great. However is the a way to close the blank line if
no
nick name is used.
I'm not sure I'm explaining it correctly. Let the try with an example

Thomas
(tom)
Mary - Wife

Thomas
blank line - no nick name
mary

Could it read
Thomas
mary

Thank you
Dick


"Doug Robbins - Word MVP" wrote:

Use the following field construction

{ IF { MERGEFIELD nick_name } "" "({ MERGEFIELD nick_name })" }

You must use Ctrl+F9 for each pair of field delimiters { } and you use
Alt+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

"Anvil22" wrote in message
news I have a word document (catalogue) around one of the fields I would
like
to
put a parenthesis. (nick_name). If there isnt a nick name I would
like
the
space left blank without the parentheses. I have tried if then but
cant
seem
to get it to work. Can anyone help?
Thanks
Dick


Reply
Thread Tools
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
merg document formatting Anvil22 Microsoft Word Help 4 March 4th 10 03:06 AM
How do you clear the "Start from existing document" list mail merg csobczak Mailmerge 1 July 11th 06 02:06 PM
I cannot get mail merg to work mslover Mailmerge 1 December 8th 05 04:57 AM
mail merg Darlene Mailmerge 2 May 11th 05 04:48 PM
How do I retain formatting from an Excel Data File to a Word Merg. Pookas Microsoft Word Help 5 March 14th 05 10:32 PM


All times are GMT +1. The time now is 07:50 PM.

Copyright ©2000 - 2023, Jelsoft Enterprises Ltd.
Copyright 2004-2023 Microsoft Office Word Forum - WordBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Word"