CreateDate Field Displays ZerosLast reviewed: February 5, 1998Article ID: Q140864 |
The information in this article applies to:
SYMPTOMSWhen 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.
STATUSMicrosoft 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.
WORKAROUNDMethod 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.
|
KBCategory: kbusage
© 1998 Microsoft Corporation. All rights reserved. Terms of Use. |