automatic date

J

Jorge

Some years ago I set up my template documents to automatically insert date,
and day of the week in all my letters.

can't remember how I did it but now I was messing about with the macros and
the facility disappeared.

help...

jorge
 
J

Jay Freedman

Hi, Jorge,

You don't need a macro to do this. Open the template directly (using the
File > Open dialog, navigate to the Templates folder and open the template).
At the place where you want the date, insert a CreateDate field. Either in
the Insert > Field dialog or later by right-clicking the field and selecting
Toggle Field Code, edit the formatting string so that the field code looks
like this:

CREATEDATE \@ "dddd, MMMM d, yyyy" \* MERGEFORMAT

or something similar if you want a format different from "Saturday, August
2, 2003".

Save the template, and then use the File > New dialog to open a new document
based on that template. The formatted date will automatically appear.
 
J

Jorge

Hi

Whatever I had gave me the date, etc.

Now when I open the files I get the code
{CREATEDATE \@ "dddd, d’ de ‘MMMM de ‘yyyy" \* MERGEFORMAT}

which is slightly different from what you gave me.

instead of say: domingo, 20 de Maio de 2001

I did not mess around with the template, so I can't understand what happened


qim
 
J

Jorge

Hi Jay

maybe I did not explain myself too well.

When I open the templates all "seems" in order.

It is when I open the files (the letters) that I wrote long ago, that
instead of them opening with the date when they were written, I get instead
the code exactly as it is in the template.

Any ideas?

thanks

qim
 
G

Graham Mayor

There is nothing wrong with your template, you merely have the display
toggled to show the field construction. ALT+F9 should fix it.

As for the discrepancy between your own and Jay's suggested field
construction, the difference is merely attributable to regional variation.

--
<>>< ><<> ><<> <>>< ><<> <>>< <>>< ><<>
Graham Mayor - Word MVP
E-mail (e-mail address removed)
Web site www.gmayor.dsl.pipex.com
Word MVP web site www.mvps.org/word
<>>< ><<> ><<> <>>< ><<> <>>< <>>< ><<>
 

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