Merged letter and made changes to merged letters. Final merged doc

S

Serena K.

Merged letter and made changes to merged letters. Final merged document has
date in field code and atty wants to change it from Jan 5 to Jan 4. She does
search and replace but the date automatically updates on print, even if we
change that setting.
 
G

Graham Mayor

That's the thing about Date fields they update to the PC's system date.
You'll need to unlink them. The following macro will do that

Sub Macro1()
Dim oField As Field
For Each oField In ActiveDocument.Fields
If oField.Type = wdFieldDate Then
oField.Unlink
End If
Next oField
End Sub

http://www.gmayor.com/installing_macro.htm

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

My web site www.gmayor.com

<>>< ><<> ><<> <>>< ><<> <>>< <>><<>
 
M

macropod

Hi Serena,

In your mailmerge main document, select the date field, press Ctrl-F9 to enclose it in a pair for field braces (eg { 01-05-2010})
and type 'QUOTE' inside the braces, so that you end up with {QUOTE 01-05-2010}. Then run your mailmerge. This will prevent the dates
from updating in the future. It also means a Find/Replace on the dates will work.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top