Reply
 
Thread Tools Display Modes
  #1   Report Post  
Posted to microsoft.public.word.mailmerge.fields
msnews.microsoft.com msnews.microsoft.com is offline
external usenet poster
 
Posts: 1
Default If statement problem and \f \@ headaches

Hi,

Can anyone help and tell me what I'm doing wrong here. I'm more of an Excel person, and though I've done mailmerges aplenty before - taking Excel data into Word. I now want to get Word to do some work too, rather than having to do extra formatting work in Excel.

All I want to do is display either the word 'month' or 'months' based upon what is mailmerged from Excel.

{ MERGEFIELD Period_Of_Time } { IF { MERGEFIELD Period_Of_Time } = "One" "month" "months" }

I want it to say "One month" or "Two months", etc.

It doesn't appear to be taking any notice of that IF clause, as the result is it shows "One One" or "Two Two" or "Three Three", etc. etc. Is it because

What am I missing here ?

-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------


My second problem is that I can't for the life of me get the syntax correct on the following

{IF {MERGEFIELD End_Date ] = "" "N/A" {MERGEFIELD End_Date \f "whichever is the earlier" } }

The above works fine, but I also want to format the date to British, which I've done a load of times before by adding \@dd/MM/yyyy. Word doesn't seem to want to recognise that I want two switches on the MERGEFIELD. Putting the \f switch in makes Word 'remove' the \@dd/MM/yyyy switch. I can't get it to do the both - suffix the date field with some text and format the date as British.

-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

Thanks for any help you can give folks.

Mike.
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
Auto Format Headaches... jaykay Microsoft Word Help 1 September 7th 07 06:10 AM
IF statement problem projectmergeleader Mailmerge 3 August 21st 07 04:37 PM
problem with if statement [email protected] Microsoft Word Help 1 August 24th 06 12:13 AM
IF statement problem !Syntax Error, ! jlawson Microsoft Word Help 7 July 12th 06 03:42 PM
EPS file headaches in Word. Kuma Microsoft Word Help 3 February 20th 05 02:23 AM


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

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"