Reply
 
Thread Tools Display Modes
  #1   Report Post  
jco
 
Posts: n/a
Default Using the IF-THEN function to conditionally add picture?

Doing a mail merge, I am trying to use the IF-THEN function to conditionally
add or remove a picture field.

Nevertheless it seems that the IF-THEN function only works to add plain text.

Is there another way to do this (VBA??)?

And:
The condition field contains a value, but is in text format (contains a
period sign). In my IF-sentence, I want to check whether the value in this
field is greater than a certain limit. Is there any way to convert the field
from text to number?
  #2   Report Post  
Anne Troy
 
Posts: n/a
Default

This may help:
http://office.microsoft.com/en-us/as...861641033.aspx
************
Anne Troy
www.OfficeArticles.com

"jco" wrote in message
...
Doing a mail merge, I am trying to use the IF-THEN function to
conditionally
add or remove a picture field.

Nevertheless it seems that the IF-THEN function only works to add plain
text.

Is there another way to do this (VBA??)?

And:
The condition field contains a value, but is in text format (contains a
period sign). In my IF-sentence, I want to check whether the value in this
field is greater than a certain limit. Is there any way to convert the
field
from text to number?



  #3   Report Post  
Graham Mayor
 
Posts: n/a
Default

You have to enter it manually

{IF {Mergefield fieldname} = "condition" "{Includepicture
"c:\\path\\picturename.jpg"}"}

Use CTRL+F9 for the field boundaries and change the fiueldnames etc to suit
your requirements.

--

Graham Mayor - Word MVP

My web site www.gmayor.com
Word MVP web site http://word.mvps.org


jco wrote:
Doing a mail merge, I am trying to use the IF-THEN function to
conditionally add or remove a picture field.

Nevertheless it seems that the IF-THEN function only works to add
plain text.

Is there another way to do this (VBA??)?

And:
The condition field contains a value, but is in text format (contains
a period sign). In my IF-sentence, I want to check whether the value
in this field is greater than a certain limit. Is there any way to
convert the field from text to number?



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
If function and IncludePicture TimTDP Mailmerge 5 August 17th 05 05:06 PM
Text to Speech Function is available in Excel but not in Word Shrikant Microsoft Word Help 1 August 9th 05 02:32 PM
VBA function results in fields Robert Mulroney Microsoft Word Help 3 July 5th 05 09:03 AM
How to insert a Symbol into the Find and Replace Function in Word EamonX1 Microsoft Word Help 5 May 16th 05 12:48 PM
Word Compare and Merge Document Function EricM Microsoft Word Help 2 March 28th 05 11:53 PM


All times are GMT +1. The time now is 06:08 AM.

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

About Us

"It's about Microsoft Word"