Group: microsoft.public.word.vba.general
From: IdontWantSpam@nospam.net (Edward Thrashcort)
Date: Wednesday, March 19, 2008 2:02 AM
Subject: Re: formatting date field inserted by macro

Try recording a macro while you add the field

Eddie
> *From:* Oerjan
> *Date:* Tue, 18 Mar 2008 10:34:39 +0100
>
> Hi,
>
> Sorry if this has been asked recently.
>
> I want a macro to insert a customized date.
>
> I understand that I can insert an unformatted date field with
> .Fields.Add and Type:=wdFieldDate and then S&R the code inside the
> field but I would like to directly insert a correctly formatted field.
>
> I have tried to type the field code with Selection.Text = " ", but I
> do not manage to get those special field brackets into the Editor.
>
> TIA
> Örjan
>