Microsoft Office Forums

Go Back   Microsoft Office Forums > >

Reply
 
Thread Tools Display Modes
  #1  
Old 07-01-2011, 04:09 AM
tonywatsonmail tonywatsonmail is offline Date not transfering to mail merge correctly Windows 7 32bit Date not transfering to mail merge correctly Office 2007
Novice
Date not transfering to mail merge correctly
 
Join Date: Jun 2011
Posts: 10
tonywatsonmail is on a distinguished road
Red face Date not transfering to mail merge correctly

Hi Everyone,

can somwone please help me reformate the date of a mailmerge data.

it currently comes through as 01/07/11


I want it to be 1 July 2011.

I belive it can be done but dont know the code needed to do it.

please help me.

Tony
Reply With Quote
  #2  
Old 07-01-2011, 05:30 AM
macropod's Avatar
macropod macropod is offline Date not transfering to mail merge correctly Windows 7 64bit Date not transfering to mail merge correctly Office 2010 32bit
Administrator
 
Join Date: Dec 2010
Location: Canberra, Australia
Posts: 21,962
macropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond repute
Default

Hi Tony,

To get the date format you want, you can add a formatting picture switch as follows:
• select the mergefield;
• press Shift-F9 to expose the field coding. It should look something like {MERGEFIELD MyDate} where 'MyDate' is your mergefield's name;
• delete anything appearing after the mergefield's name and add '\@ "d MMMM yyyy"' to the field, as in {MERGEFIELD MyDate \@ "d MMMM yyyy"}. With this switch your date will come out as '2 August 2008'. Other possible date formatting switches include:
. \@ "dddd, d MMMM yyyy";
. \@ "ddd, d MMMM yyyy";
. \@ "d MMM yyyy";
. \@ "dd/MMM/yyyy";
. \@ "d-MM-yy";
Note: Note: you can swap the d, M, y expressions around, but you must use uppercase 'M's for months - lowercase 'm's are for minutes.
• position the cursor anywhere in this field and press F9 to update it;
• run your mailmerge.


One thing you'll notice if you're using ordinary date fields in the mailmerge main document is that the date in the output document will update if you re-open the document at a later date, which can be problematic. There is a simple way to prevent this - embed the Date field in the mailmerge main document in a QUOTE field. To do this, simply select the date field, press Ctrl-F9 to embed it in another field, and type 'QUOTE' inside the left field brace, so that you end up with {QUOTE 'date field'}. With the QUOTE field, the date field will automatically unlink when the mailmerge output document is created.
__________________
Cheers,
Paul Edstein
[Fmr MS MVP - Word]
Reply With Quote
Reply

Thread Tools
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
Date not transfering to mail merge correctly Saving INDV mail merges During the mail merge sedain121 Mail Merge 2 10-04-2011 07:52 PM
transfering outlook PST to a new pc, unused storage folder and suggested contacts burgers Outlook 1 06-14-2011 04:05 PM
Transfering Project into Access hb367 Project 0 09-07-2010 11:09 AM
Mail Merge nonworduser Mail Merge 0 08-24-2010 02:28 PM
Add date and time stamp to new mail and incoming mail cadsmarter Outlook 0 02-02-2006 08:50 AM

Other Forums: Access Forums

All times are GMT -7. The time now is 03:45 AM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.
Search Engine Optimisation provided by DragonByte SEO (Lite) - vBulletin Mods & Addons Copyright © 2024 DragonByte Technologies Ltd.
MSOfficeForums.com is not affiliated with Microsoft