Doug's pointed you to my date calculations 'tutorial. I've also got
another
'tutorial' - on Word field maths - at:
http://www.wopr.com/cgi-bin/w3t/showthreaded.pl?Number=365442
with plenty of examples of what can be done with just a few of the
field switches.
Cheers
--
macropod
[MVP - Microsoft Word]
"Thanks for the Help" <
[email protected]>
wrote in
message luckily, the animals were only an example

the actual field
result will
be
the name of a state, so I will adjust the "lower" accordingly. I
knew there had to be a way to do it. Thank you guys so much for
your help. By the way, I just bought a book on Word VBA. Going to try
to beef
up my understanding a bit. Any suggestions for a book that goes
through a thorough discussion of fields and switches?
:
Or a holy cow?
--
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
Only a single a/an result, and 20% fewer characters - mostly
unnecessary quotes & spaces. ||

)}
I do wonder though what the OP will do when he/she finds he/she
has an
hare
or a ewe!!
Cheers
--
macropod
[MVP - Microsoft Word]
Simpler?
I prefer to add the \*lower switch when making this type of
comparison as I have been bitten too many times with unfortunate
data entry (not mine). At
least this way it should work whatever is entered.
--
<>>< ><<> ><<> <>>< ><<> <>>< <>><<>
Graham Mayor - Word MVP
My web site
www.gmayor.com
<>>< ><<> ><<> <>>< ><<> <>>< <>><<>
macropod wrote:
A simpler version of Graham's solution:
{IF{Mergefield Type \*lower}<> "a*" {IF{Mergefield Type
\*lower}<> "e*" {IF{Mergefield Type \*lower}<> "i*" {IF{
Mergefield Type \*lower}<> "o*" IF{Mergefield Type \*lower}<>
"u*" a an}}}}} If you're sure the animal types will always have
lower-case
letters, you could delete all the '\*lower' switches too.
Cheers
"Thanks for the Help" <Thanks for the
(e-mail address removed)>
wrote in message
I am doing a mailmerge document and need help with a field
that will recognize whether the mergefield result begins with
a consonant or
a
vowel.
For instance the sentance might read "His pet is a <<cat>>."
or "His pet is a <<owl>>. I need a field to substitute "an"
for "a" when the mergefield begins with a consonant. Any
ideas?