Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Word / Mailmerge and Fax / November 2007

Tip: Looking for answers? Try searching our database.

Syntax

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
alex - 27 Nov 2007 18:53 GMT
Hi Using word with Excel as a datasource:
I want to say: I want to say:

If the data (date of birth) in that cell means the person is over 60yrs,
Then "we welcome volunteers that are more mature", Else "All volunteers
welcome".

{IF {MERGEFIELD DoB}= "=Today()-21900" "we welcome volunteers that are more
mature" "All volunteers welcome"}

Can someone tell me what i have done wrong please

Thanks

A
Doug Robbins - Word MVP - 28 Nov 2007 01:41 GMT
I would suggest that you use Excel to determine the age and then use the age
mergefield in your If...then...else construction in Word

{ IF { MERGEFIELD age } > 60 "We welcome volunterrs that are more mature."
"All volunteers welcome." }

Signature

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

> Hi Using word with Excel as a datasource:
> I want to say: I want to say:
[quoted text clipped - 11 lines]
>
> A
Doug Robbins - Word MVP - 28 Nov 2007 01:43 GMT
Alternatively, if you are hell bent on doing it in Word, to see how to do
this and just about everything else you might want to do
with dates in Word, check out fellow MVP, Macropod's Date Calc 'tutorial',
at:

http://www.wopr.com/cgi-bin/w3t/showthreaded.pl?Number=249902

or at the following page of fellow MVP Graham Mayor's website

http://www.gmayor.com/downloads.htm#Third_party

where he has an item titled 'Date and Time Calculations In A Mailmerge'

Signature

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

> Hi Using word with Excel as a datasource:
> I want to say: I want to say:
[quoted text clipped - 11 lines]
>
> A
Graham Mayor - 28 Nov 2007 07:09 GMT
See also comparing dates at http://www.gmayor.com/formatting_word_fields.htm

Signature

<>>< ><<> ><<> <>>< ><<> <>>< <>><<>
Graham Mayor -  Word MVP

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

> Hi Using word with Excel as a datasource:
> I want to say: I want to say:
[quoted text clipped - 11 lines]
>
> A

Rate this thread:






 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.