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 / August 2005

Tip: Looking for answers? Try searching our database.

Using Excel as data source

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
CWH - 10 Aug 2005 11:45 GMT
I am using Office 2003

When I use an Excel file as my data file, is there any way that I can get
dates to appear as 1st August, with the "st" in superscript. It is in that
format in Excel but when I mailmerger the data the format is lost.  Is there
some way to format that field in Word?
Signature

CWH

Cindy Meister - 10 Aug 2005 14:06 GMT
Hmmm. The "simplest" answer would probably be to use a DDE connection to
Excel so that the data comes over the link exactly the way it looks in Excel.
That type of connection won't always work in later software versions, but if
it does for you, then that will be simplest. Activate "Confirm conversions on
open" in Tools/Options/General, then link to the Excel file (again).

Other than that, you could conceivably do this using some fancy footwork in
the Mergefield codes. Word doesn't provide any formatting switch for
displaying a date with "st". But it does provide switches that will change
plain ordinals into cardinals. However, you may not be able to achieve the
superscript.

{ MERGEFIELD "BirthDate" \@ "d" \* Ordinal } { MERGEFIELD "BirthDate" \@
"MMMM" }

Alt+F9 to toggle the field codes on/off.

 -- Cindy

> I am using Office 2003
>
> When I use an Excel file as my data file, is there any way that I can get
> dates to appear as 1st August, with the "st" in superscript. It is in that
> format in Excel but when I mailmerger the data the format is lost.  Is there
> some way to format that field in Word?
CWH - 10 Aug 2005 14:36 GMT
Cindy,

Thanks for the reply.  Both options did not work.
Signature

CWH

> Hmmm. The "simplest" answer would probably be to use a DDE connection to
> Excel so that the data comes over the link exactly the way it looks in Excel.
[quoted text clipped - 21 lines]
> > format in Excel but when I mailmerger the data the format is lost.  Is there
> > some way to format that field in Word?
Cindy Meister - 10 Aug 2005 14:39 GMT
HOW did they "not work"?

 -- Cindy

> Cindy,
>
[quoted text clipped - 25 lines]
> > > format in Excel but when I mailmerger the data the format is lost.  Is there
> > > some way to format that field in Word?
CWH - 10 Aug 2005 14:51 GMT
Cindy,

They did not put the "st" into superscript.
Signature

CWH

> HOW did they "not work"?
>
[quoted text clipped - 29 lines]
> > > > format in Excel but when I mailmerger the data the format is lost.  Is there
> > > > some way to format that field in Word?
Cindy Meister - 10 Aug 2005 16:55 GMT
As I wrote in my original reply, I doubt that you're going to find anything
that will do that.

If you really need the superscript, then you're probably going to have to
run a maco over the mail merge result...

 -- Cindy

> Cindy,
>
[quoted text clipped - 33 lines]
> > > > > format in Excel but when I mailmerger the data the format is lost.  Is there
> > > > > some way to format that field in Word?
Graham Mayor - 11 Aug 2005 06:11 GMT
As you mentioned earlier, some fancy footwork can achieve this, and there
are some suggestions at
www.wopr.com/cgi-bin/w3t/showthreaded.pl?Number=249902

{QUOTE{DATE \@ d}{IF{=(mod({DATE \@ d},10)<4)*(mod({DATE \@
d},10)<>0)*({DATE \@ d}<>11)*({DATE \@ d}<>12)*({DATE \@ d}<>13)}= 1
{=mod({DATE \@ d},10)-2 \# rd;st;nd} th} { DATE \@ "MMMM, yyyy" }}

with superscript applied to 'rd;st;nd th' should do the trick

Alternatively

{QUOTE{DATE \@ d}{IF{=(mod({DATE \@ d},10)<4)*(mod({DATE \@
d},10)<>0)*({DATE \@ d}<>11)*({DATE \@ d}<>12)*({DATE \@ d}<>13)}= 1
{=mod({DATE \@ d},10)-2 \# rd;st;nd} th \* Charformat} {DATE \@ "MMMM,
yyyy"}}

with 'IF' formatted as superscript should achieve the same thing

Substitute each incidence of DATE for the Mergefield that contains the date.

Signature

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

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

> As I wrote in my original reply, I doubt that you're going to find
> anything that will do that.
[quoted text clipped - 48 lines]
>>>>>> field in Word? --
>>>>>> CWH
 
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.