cubehoogl.blogg.se

How to make form fields in word
How to make form fields in word









how to make form fields in word

There are three types of form fields for choice: Text Form Field, Check Box Form Field and Drop-Down Form Field.

how to make form fields in word

Then click the Insert tab the Forms drop down button.

how to make form fields in word

You will need to decide the best course of action based on your needs, the data involved, and the type of users you have. Open your word document and click the position where you want to insert a form field. When the user tries to save or close the form, the AutoExit macro could check the value of the variable, and if it shows there are mandatory fields not filled in, then a dialog box explaining the problem could be displayed.Īll of these approaches, of course, will require extensive testing before implementing. Your macro, of course, could get much more specific in the checking it does.įor a more comprehensive approach, you could have the on-exit macros (if there is more than one mandatory field) set a system variable. This particular example checks to make sure that the user enters something-anything-in the field. In this macro you would need to change the name of the field specified (Text1) to the name of the field you are using the macro with. SInFld = InputBox("This field must be filled in, fill in below.")ĪctiveDocument.FormFields("Text1").Result = sInFld If ActiveDocument.FormFields("Text1").Result = "" Then The following is an example of a simple macro to do just this: If not, then the macro could move the insertion point back to the field to request input or could prompt the user for the necessary information. (Display the Developer tab of the ribbon, click the Design Mode tool in the Controls group, right-click on the field, choose Properties from the resulting Context menu, and use the Exit drop-down list to select a macro to run.) The macro could check to make sure the value provided within the field is within acceptable bounds. Perhaps the easiest method is to simply make sure that you set the appropriate "on exit" setting for the form field to run a macro. Legacy form fields are accessible from the Legacy Tools button’s menu in the Controls group on the Developer tab, as you saw in Figure 16.6. You can continue to use them in Word 2016, and you must use them for forms to be saved in Word 97-2003 format.

HOW TO MAKE FORM FIELDS IN WORD HOW TO

Microsoft Word fields house instructions that help you create dynamic content theyre flexible and powerful, if you know how to use them. But there are several ways to provide the same functionality. Legacy form fields are the field types that were available in earlier versions of Word. 3 ways to enter fields in Microsoft Word. There is no setting that you can use to mark a field as mandatory, as you can in Access. In other words, making sure that the user must fill something in the field. Julia asked if there is a way, when designing forms in Word, to make a particular form field mandatory.











How to make form fields in word