CreateDate Field Displays Zeros

Last reviewed: February 5, 1998
Article ID: Q140864
The information in this article applies to:
  • Microsoft Word for Windows, versions 6.0, 6.0a, 6.0c
  • Microsoft Windows 95 operating system

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.


KBCategory: kbusage
KBSubcategory: kbfield kbmacro

Additional reference words: 6.0 6.0a 6.0c winword createdate date
field
Keywords : kbfield kbmacro
Version : 6.0 6.0a 6.0c
Platform : WINDOWS


THE INFORMATION PROVIDED IN THE MICROSOFT KNOWLEDGE BASE IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND. MICROSOFT DISCLAIMS ALL WARRANTIES, EITHER EXPRESS OR IMPLIED, INCLUDING THE WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. IN NO EVENT SHALL MICROSOFT CORPORATION OR ITS SUPPLIERS BE LIABLE FOR ANY DAMAGES WHATSOEVER INCLUDING DIRECT, INDIRECT, INCIDENTAL, CONSEQUENTIAL, LOSS OF BUSINESS PROFITS OR SPECIAL DAMAGES, EVEN IF MICROSOFT CORPORATION OR ITS SUPPLIERS HAVE BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. SOME STATES DO NOT ALLOW THE EXCLUSION OR LIMITATION OF LIABILITY FOR CONSEQUENTIAL OR INCIDENTAL DAMAGES SO THE FOREGOING LIMITATION MAY NOT APPLY.

Last reviewed: February 5, 1998
© 1998 Microsoft Corporation. All rights reserved. Terms of Use.