Microsoft KB Archive/140864

{|
 * width="100%"|

CreateDate Field Displays Zeros

 * }

Q140864

-

The information in this article applies to:


 * Microsoft Word for Windows, versions 6.0, 6.0a, 6.0c
 * Microsoft Windows 95

-

SYMPTOMS
When you insert a CreateDate field in a Word 6.0 document that has been started from a Windows 95 desktop shortcut, the field displays zeros. The field displays zeros even after you update the field.

STATUS
Microsoft has confirmed this to be a problem in Microsoft Word version 6.0, 6.0a, and 6.0c for Windows. We are researching this problem and will post new information here in the Microsoft Knowledge Base as it becomes available.

WORKAROUND
Method 1:

"Before you insert the CreateDate field, save the document. When you insert the field, the field will display the create date." Method 2:

"Create the following macro, name it AutoOpen, and store it in your Normal template."             Sub MAIN Dim DocInf As DocumentStatistics GetCurValues DocInf If Len(DocInf.Created) < 1 Then Pth$ = FileNameInfo$(FileName$, 5) Nm$ = FileNameInfo$(FileName$, 3) ScreenUpdating 0 SendKeys "{enter}" FileSaveAs .Name = Pth$ + "xxxxxxxx.doc" Kill Pth$ + Nm$ SendKeys "{enter}" FileSaveAs .Name = Pth$ + Nm$ Kill Pth$ + "xxxxxxxx.doc" End If            End Sub WARNING: ANY USE BY YOU OF THE CODE PROVIDED IN THIS ARTICLE IS AT YOUR OWN RISK. Microsoft provides this macro code "as is" without warranty of any kind, either express or implied, including but not limited to the implied warranties of merchantability and/or fitness for a particular purpose.

Additional query words: 6.0 winword createdate date field

Keywords : kbmacro kbfield

Issue type :

Technology :