PC Review


Reply
Thread Tools Rate Thread

Default date in Text form field

 
 
brian3ps
Guest
Posts: n/a
 
      10th Jun 2008
In Word 2003, how do I set the Default date in a Text form field (Type: Date,
Fill-in enabled) to the current date?
 
Reply With Quote
 
 
 
 
Graham Mayor
Guest
Posts: n/a
 
      11th Jun 2008
Set the field type property to current date rather than date?

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

My web site www.gmayor.com
Word MVP web site http://word.mvps.org
<>>< ><<> ><<> <>>< ><<> <>>< <>><<>


brian3ps wrote:
> In Word 2003, how do I set the Default date in a Text form field
> (Type: Date, Fill-in enabled) to the current date?



 
Reply With Quote
 
brian3ps
Guest
Posts: n/a
 
      11th Jun 2008
I tried that, but then the field can no longer be edited (Fill-in enable is
grayed out). I need to allow this field to be changed if necessary ... just
want it to default to the current date.

"Graham Mayor" wrote:

> Set the field type property to current date rather than date?
>
> --
> <>>< ><<> ><<> <>>< ><<> <>>< <>><<>
> Graham Mayor - Word MVP
>
> My web site www.gmayor.com
> Word MVP web site http://word.mvps.org
> <>>< ><<> ><<> <>>< ><<> <>>< <>><<>
>
>
> brian3ps wrote:
> > In Word 2003, how do I set the Default date in a Text form field
> > (Type: Date, Fill-in enabled) to the current date?

>
>
>

 
Reply With Quote
 
Suzanne S. Barnhill
Guest
Posts: n/a
 
      11th Jun 2008
Did you have the form unprotected when you tried to edit it?

--
Suzanne S. Barnhill
Microsoft MVP (Word)
Words into Type
Fairhope, Alabama USA

"brian3ps" <(E-Mail Removed)> wrote in message
news:17E74BF3-1CB2-4CA8-9E65-(E-Mail Removed)...
>I tried that, but then the field can no longer be edited (Fill-in enable is
> grayed out). I need to allow this field to be changed if necessary ...
> just
> want it to default to the current date.
>
> "Graham Mayor" wrote:
>
>> Set the field type property to current date rather than date?
>>
>> --
>> <>>< ><<> ><<> <>>< ><<> <>>< <>><<>
>> Graham Mayor - Word MVP
>>
>> My web site www.gmayor.com
>> Word MVP web site http://word.mvps.org
>> <>>< ><<> ><<> <>>< ><<> <>>< <>><<>
>>
>>
>> brian3ps wrote:
>> > In Word 2003, how do I set the Default date in a Text form field
>> > (Type: Date, Fill-in enabled) to the current date?

>>
>>
>>

>



 
Reply With Quote
 
Graham Mayor
Guest
Posts: n/a
 
      12th Jun 2008
The current date is always the current date, but if you want to edit the
field, you will need instead an on-entry macro to fill the date eg assuming
the text field is bookmarked "Date1", the following will insert the current
date in that field when you tab into it, in the format of the switch - here
"dd\MM\yyyy"


Sub SetDate()
Dim sDate As Date
sDate = Format((Now), "dd/MM/yyyy")
ActiveDocument.FormFields("Date1").Result = sDate
End Sub

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

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

My web site www.gmayor.com
Word MVP web site http://word.mvps.org
<>>< ><<> ><<> <>>< ><<> <>>< <>><<>


brian3ps wrote:
> I tried that, but then the field can no longer be edited (Fill-in
> enable is grayed out). I need to allow this field to be changed if
> necessary ... just want it to default to the current date.
>
> "Graham Mayor" wrote:
>
>> Set the field type property to current date rather than date?
>>
>> --
>> <>>< ><<> ><<> <>>< ><<> <>>< <>><<>
>> Graham Mayor - Word MVP
>>
>> My web site www.gmayor.com
>> Word MVP web site http://word.mvps.org
>> <>>< ><<> ><<> <>>< ><<> <>>< <>><<>
>>
>>
>> brian3ps wrote:
>>> In Word 2003, how do I set the Default date in a Text form field
>>> (Type: Date, Fill-in enabled) to the current date?



 
Reply With Quote
 
brian3ps
Guest
Posts: n/a
 
      13th Jun 2008
That did the trick. Thanks.

"Graham Mayor" wrote:

> The current date is always the current date, but if you want to edit the
> field, you will need instead an on-entry macro to fill the date eg assuming
> the text field is bookmarked "Date1", the following will insert the current
> date in that field when you tab into it, in the format of the switch - here
> "dd\MM\yyyy"
>
>
> Sub SetDate()
> Dim sDate As Date
> sDate = Format((Now), "dd/MM/yyyy")
> ActiveDocument.FormFields("Date1").Result = sDate
> End Sub
>
> http://www.gmayor.com/installing_macro.htm
>
> --
> <>>< ><<> ><<> <>>< ><<> <>>< <>><<>
> Graham Mayor - Word MVP
>
> My web site www.gmayor.com
> Word MVP web site http://word.mvps.org
> <>>< ><<> ><<> <>>< ><<> <>>< <>><<>
>
>
> brian3ps wrote:
> > I tried that, but then the field can no longer be edited (Fill-in
> > enable is grayed out). I need to allow this field to be changed if
> > necessary ... just want it to default to the current date.
> >
> > "Graham Mayor" wrote:
> >
> >> Set the field type property to current date rather than date?
> >>
> >> --
> >> <>>< ><<> ><<> <>>< ><<> <>>< <>><<>
> >> Graham Mayor - Word MVP
> >>
> >> My web site www.gmayor.com
> >> Word MVP web site http://word.mvps.org
> >> <>>< ><<> ><<> <>>< ><<> <>>< <>><<>
> >>
> >>
> >> brian3ps wrote:
> >>> In Word 2003, how do I set the Default date in a Text form field
> >>> (Type: Date, Fill-in enabled) to the current date?

>
>
>

 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
How do I enter a Default date of Today in a text Form Field Pawprint Microsoft Word Document Management 4 3rd Oct 2008 07:04 AM
Default text in date field mogll Microsoft Access Reports 3 15th Aug 2008 05:32 PM
Use current date in the default date form field option amcferron@mac.com Microsoft Word Document Management 4 8th Apr 2007 08:27 AM
form date field to default to current date =?Utf-8?B?b21lZ2FnbWlrZQ==?= Microsoft Access Forms 1 31st Mar 2006 08:54 PM
form field date format with default date Keith G Hicks Microsoft Word Document Management 1 15th Oct 2004 10:54 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 03:57 AM.