The information in this article applies to:
SUMMARY
This article contains instructions for creating a template that
automatically updates all fields in a document, including fields contained
in the header and footer areas. This article includes the following
sections:
MORE INFORMATIONMicrosoft provides programming examples for illustration only, without warranty either expressed or implied, including, but not limited to, the implied warranties of merchantability and/or fitness for a particular purpose. This article assumes that you are familiar with the programming language being demonstrated and the tools used to create and debug procedures. Microsoft support professionals can help explain the functionality of a particular procedure, but they will not modify these examples to provide added functionality or construct procedures to meet your specific needs. If you have limited programming experience, you may want to contact the Microsoft fee-based consulting line at (800) 936-5200. For more information about the support options available from Microsoft, please see the following page on the World Wide Web: http://www.microsoft.com/supportnet/refguide/ Steps to Create the MacroCreate a macro to automatically update all fields by following these steps. Because the macro is called AutoNew and is stored in your template, this macro is available for all new documents you create based on your template.
Steps to Insert the CreateDate FieldThe CreateDate field inserts the date and/or time a document was first created. Using the template in which you created your macro, follow these steps:
Creating a Toolbar Button to Automatically Select Your TemplateTo add a button to your toolbar that automatically creates a new document based on your template, follow these steps:
Q159824 How to Automatically Update Fields in a Document or Template Additional query words: auto new open automatic template macro wordbasic
Keywords : kbprg kbtemplate kbmacroexample winword macword word6 word7 word95 |
Last Reviewed: September 23, 1999 © 2000 Microsoft Corporation. All rights reserved. Terms of Use. |