Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 10
Default Problem with a date using Mail Merge

I am running XP Home with Office 2002 applications.

I am not sure if this is an Excel programming problem or a Word Mail Merge
problem. Here is the setup. In an Excel file via Excel programming, I have
opened a Word document. The Word document opened is a mail merge document
that uses a second, different, Excel file as a data source. That 2nd Excel
file (the data source) happens to be open already at the time the Word
document is loaded. The mail merge is via ODBC.

Here is the problem: When the Excel code is run and any record is merged
into the Word file, the date mergefield is merged as a serial value, not the
format I desire ("dd Mmm yy"). All other (non-date)merged fields are merged
in the correct format. This occurs even though the cell in the Excel file
the data came from is formatted as a custom "dd Mmm yy" and the date
mergefield in the Word document uses the field codes \@ "dd MMM yy". If I
open the Word document directly and perform the mail merge, the date is
merged in the correct format, not a serial value. I only obtain the serial
value when merged through the Excel programming.

I have searched the NGs and Google but have not found any posts or
references that correct the problem. I am not sure where else to look or
what else to do at this point. Thank you in advance for any assistance or
advice.

Boog
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Mail Merge Problem Shannan Excel Discussion (Misc queries) 1 October 24th 09 05:32 AM
Mail Merge Problem FLYNNE Excel Discussion (Misc queries) 3 September 29th 08 05:48 AM
mail merge date problem Hilly New Users to Excel 2 July 11th 08 02:21 PM
date problem with mail merge Hilly Excel Discussion (Misc queries) 1 July 11th 08 08:44 AM
Serious Mail Merge Problem FNORD Excel Discussion (Misc queries) 0 February 8th 05 05:13 PM


All times are GMT +1. The time now is 10:21 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"