If you use a REF field to reproduce the date and format that date field as
language = French then the formatting switches will insert the days and
months with their French language equivalents e.g.
{REF bDate \@ "dddd, d MMMM yyyy" } should produce
jeudi, 8 janvier 2009
Do the French capitalise their days and months? It's been a while ... but if
they do you can add a Caps switch
{ Date \@ "dddd, d MMMM yyyy" \*Caps }
to produce
Jeudi, 8 Janvier 2009
Probably even simpler where different languages are involved is to take my
previous suggestion of using the pop up calendar to collect the date
(assuming the initial date cannot be derived from a CreateDate field?) and
assign the result from the calendar to a docvariable. You can then use
docvariable fields FORMATTED WITH THE FRENCH language attribute, wherever
you want to insert the date e.g.
{ DOCVARIABLE varDate \@ "dddd d MMMM yyyy"}
{ DOCVARIABLE varDate \@ "d MMM yyyy"}
{ DOCVARIABLE varDate \@ " MM yyyy"}
to show
jeudi 8 janvier 2009
8 janv. 2009
01 2009
respectively.
The revised code associated with the calendar form to achieve that would be
Private Sub Calendar1_Click()
Dim oVars As Variables
Dim i As Long
Set oVars = ActiveDocument.Variables
oVars("varDate").Value = _
format(Calendar1.Value, "dd MM yyyy")
For i = ActiveDocument.Fields.Count To 1 Step -1
With ActiveDocument.Fields(i)
If .Type = wdFieldDocVariable Then .Update
End With
Next i
Unload Me
End Sub
--
<>>< ><<> ><<> <>>< ><<> <>>< <>><<>
Graham Mayor - Word MVP
<>>< ><<> ><<> <>>< ><<> <>>< <>><<>