Formfield wdDateText

J

jbc

Hi, I'm having a problem adding a formfield in Word 2000. I'm adding a
textbox and want it to be formatted with the DateText setting. I want the
formatting to spell out the month day, year when the user enters the date.

I've been playing with the TextInput property, but must be missing
something. This is the code w/o TextInput property.

Set ffield = ActiveDocument.FormFields _
.Add(Range:=Selection.Range, Type:=wdFieldFormTextInput)

With ffield
.OwnStatus = True
.StatusText = "Type Prior Application Filing Date, xx/xx/xx"
End With

Thank you.

jbc
 
C

Cindy M.

Hi =?Utf-8?B?amJj?=,

This works for me:

With ffield
.TextInput.EditType wdDateText, Date, "dd MMMM yyyy", True
End With
I'm having a problem adding a formfield in Word 2000. I'm adding a
textbox and want it to be formatted with the DateText setting. I want the
formatting to spell out the month day, year when the user enters the date.

I've been playing with the TextInput property, but must be missing
something. This is the code w/o TextInput property.

Set ffield = ActiveDocument.FormFields _
.Add(Range:=Selection.Range, Type:=wdFieldFormTextInput)

With ffield
.OwnStatus = True
.StatusText = "Type Prior Application Filing Date, xx/xx/xx"
End With

Thank you.

Cindy Meister
INTER-Solutions, Switzerland
http://homepage.swissonline.ch/cindymeister (last update Jun 17 2005)
http://www.word.mvps.org

This reply is posted in the Newsgroup; please post any follow question or
reply in the newsgroup and not by e-mail :)
 

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