WD: How to Create an Automated Form with Fill-in FieldsLast reviewed: March 4, 1998Article ID: Q142213 |
The information in this article applies to:
SUMMARYThis article describes how to create a simple form that automatically prompts a user to fill in information.
MORE INFORMATIONWARNING: 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. Follow thse steps to create a template with automatic fill-in fields:
Create the Automated MacroWord 97 for Windows or Word 98 Macintosh Edition: Word 97 for Windows and Word 98 Macintosh Edition do not require a macro to automatically update FILLIN fields. When creating a new document based on the template created in the steps above, Word automatically updates and displays the FILLIN field. The following Visual Basic for Applications macro is provided for illustrative purposes only and should not be used within an AutoNew macro. If this macro is included in the template created above, the fillin field will update and display twice.
Sub AutoNew() ActiveDocument.Fields.Update End SubWord 6.x, 7.x:
Using the TemplateTo create new documents based on the new template, follow these steps.
Additional InformationFor additional information about creating online forms with form fields, please see the following article in the Microsoft Knowledge Base:
ARTICLE-ID: Q141990 TITLE : How to Create an Online Form Using Form FieldsYou can also use SET and ASK fields in conjunction with fill-in fields.
Word 97 for Windows or Word 98 Macintosh Edition: For more information about SET fields, click the Office Assistant, type "set fields," click Search, and then click to view the "Field Codes: Set field" topic. For more information about ASK fields, click the Office Assistant, type "ask fields," click Search, and then click to view the "Field Codes: Set field" topic. NOTE: If the Assistant is hidden, click the Office Assistant button on the Standard toolbar. If Word Help is not installed on your computer, please see the following article in the Microsoft Knowledge Base:
ARTICLE-ID: Q120802 TITLE : Office: How to Add/Remove a Single Office Program or Component REFERENCES"Microsoft Word User's Guide," version 6.0, Chapter 14 Forms "Microsoft Word for Windows User's Guide," version 2.0, pages 480-484
|
Additional query words: fillin field fields forms auto keyboard merge
© 1998 Microsoft Corporation. All rights reserved. Terms of Use. |