Group:  Microsoft Word ยป microsoft.public.word.mailmerge.fields
Thread: Mergefield Question

Geek News

Mergefield Question
KFreds 10/9/2008 3:14:00 PM
I have two mergefeld addresss, one called Vendor Address and the other is New
Address, where there is a new address in my excel sheet i want to use it, if
it is blank i want to use the Vendor address, is there a way I can do this?
Re: Mergefield Question
"Peter Jamieson" <pjj[ at ]KillmapSpjjnet.demon.co.uk> 10/9/2008 4:57:28 PM
Try

{ IF "{ MERGEFIELD "New Address" }" = "" "{ MERGEFIELD "Vendor Address" }"
"{ MERGEFIELD "New Address" }" }

where all the {} are pairs of the special Field code braces that you can
insert using ctrl-F9 and everything else is plain text. Use Alt-F9 to toggle
between "field code" view and "field result" view.

You can probably reduce that to

{ IF { MERGEFIELD "New Address" } = "" { MERGEFIELD "Vendor Address" } {
MERGEFIELD "New Address" } }


--
Peter Jamieson
http://tips.pjmsn.me.uk

"KFreds" <KFreds[ at ]discussions.microsoft.com> wrote in message
news:2EB4FE11-241C-4CC1-8E8D-8DD2B3436042[ at ]microsoft.com...
[Quoted Text]
>I have two mergefeld addresss, one called Vendor Address and the other is
>New
> Address, where there is a new address in my excel sheet i want to use it,
> if
> it is blank i want to use the Vendor address, is there a way I can do
> this?

Re: Mergefield Question
KFreds 10/10/2008 1:40:01 PM
worked like a charm, thanks!

"Peter Jamieson" wrote:

[Quoted Text]
> Try
>
> { IF "{ MERGEFIELD "New Address" }" = "" "{ MERGEFIELD "Vendor Address" }"
> "{ MERGEFIELD "New Address" }" }
>
> where all the {} are pairs of the special Field code braces that you can
> insert using ctrl-F9 and everything else is plain text. Use Alt-F9 to toggle
> between "field code" view and "field result" view.
>
> You can probably reduce that to
>
> { IF { MERGEFIELD "New Address" } = "" { MERGEFIELD "Vendor Address" } {
> MERGEFIELD "New Address" } }
>
>
> --
> Peter Jamieson
> http://tips.pjmsn.me.uk
>
> "KFreds" <KFreds[ at ]discussions.microsoft.com> wrote in message
> news:2EB4FE11-241C-4CC1-8E8D-8DD2B3436042[ at ]microsoft.com...
> >I have two mergefeld addresss, one called Vendor Address and the other is
> >New
> > Address, where there is a new address in my excel sheet i want to use it,
> > if
> > it is blank i want to use the Vendor address, is there a way I can do
> > this?
>
>

Home | Search | Terms | Imprint Contact
Newsgroups Reader - provided by WiredBox.Net