A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Word » Mailmerge
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

Mail Merge - inserting word field (if/then statement)



 
 
Thread Tools Display Modes
  #1  
Old May 7th, 2004, 04:11 PM
Laura
external usenet poster
 
Posts: n/a
Default Mail Merge - inserting word field (if/then statement)

I’ve got a dilemma to solve immediately—I am mail merging from an excel spreadsheet and need to use an if/then statemen such as -- If the value of a certain field is X, insert the value in field Y. Right now the only way I know how to use if/then statements is, if the value of a certain field is X, insert specific text (as opposed to a field in the spreadsheet.) Any ideas? Thank you!
  #2  
Old May 7th, 2004, 04:31 PM
Peter Jamieson
external usenet poster
 
Posts: n/a
Default Mail Merge - inserting word field (if/then statement)

It's probably easier to work directly with the field codes - use Alt-F9 to
toggle between field code/field result views and ctrl-F9 to insert the
special field code braces {}. Then use something like

{ IF "{ MERGEFIELD certain_field }" = "X" "{ MERGEFIELD Y }" "" }

--
Peter Jamieson

"Laura" wrote in message
...
I've got a dilemma to solve immediately-I am mail merging from an excel

spreadsheet and need to use an if/then statemen such as -- If the value of
a certain field is X, insert the value in field Y. Right now the only way I
know how to use if/then statements is, if the value of a certain field is X,
insert specific text (as opposed to a field in the spreadsheet.) Any ideas?
Thank you!


  #3  
Old May 15th, 2004, 07:57 PM
external usenet poster
 
Posts: n/a
Default Mail Merge - inserting word field (if/then statement)

Yes, I agree with Peter, you can't do it using the
automated "if..then ...else" in Word because it doesn't
allow you to insert another field code.. You have to
manually type it using the toggle feature. There is of
course room for error, so when I use the "Ctrl F9" I will
copy and paste the field code that I want inserted
between the brackets.

Sandy




-----Original Message-----
It's probably easier to work directly with the field

codes - use Alt-F9 to
toggle between field code/field result views and ctrl-F9

to insert the
special field code braces {}. Then use something like

{ IF "{ MERGEFIELD certain_field }" = "X" "{ MERGEFIELD

Y }" "" }

--
Peter Jamieson

"Laura" wrote in

message
news:F89A8ABF-5A97-4298-BA9C-

...
I've got a dilemma to solve immediately-I am mail

merging from an excel
spreadsheet and need to use an if/then statemen such as -

- If the value of
a certain field is X, insert the value in field Y.

Right now the only way I
know how to use if/then statements is, if the value of a

certain field is X,
insert specific text (as opposed to a field in the

spreadsheet.) Any ideas?
Thank you!


.

 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


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


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.