Unfortunately, as with legacy forms, there is no perfect, ideal method and each has its advantages and disadvantages.įor our basic form, I will use traditional document editing restrictions - Filling in forms. There are a couple of ways that you can do this with content control forms. This Microsoft Word Help & Tips page will show you how to create a functional content control form "similar" to the insurance application form example that Dian uses in part 2 of her legacy form series.īasic form with fill-in plain text and checkbox content controls Restrict Editing - Filling in formsĪs with any form, a Word content control form is supposed to maintain "form." You want the form user to input information is the spaces provided, and not be able to alter other content or your form layout. While the legacy form fields are still available through Word 2013, and several long standing content control shortcomings remain in my opinion, content controls stand poised to relegate "legacy" form fields to the dust bin of history. Note: I have a summary and a steadily growing collection of subject articles on content controls beginning here: Content Controls. Content controls continue to evolve and have been steadily expanded and enhanced as each new Office suite version is released. Microsoft introduced content controls with the release of Word 2007. Chapman explaining their design and use beginning here: Please Fill Out This Form. There is an excellent 5 part series of articles by Dian D. Word forms using "legacy" form fields have been around since at least Word 97. call them what you will like their predecessor, the printed page with lines, Microsoft Word forms provide a structured and convenient means for the document user to input information. See: Install/Employ VBA Procedures (Macros)įor instructions to employ the VBA code provided above.Online forms, protected forms, fill-in forms, electronic "e" forms. ORng.Start = Selection.Tables(1).Range.End If MsgBox("Do you want to loop to the first control?", vbQuestion + vbYesNo, "Router") = vbYes Thenįor Each oCell In Selection.Tables(1).Range.Cells (1).Range.Selectĭo Until Selection.Cells(1). > 0 The focus does not advance to the next control. Using the tab key in one of these controls enters a physical tab in the control as expected. The following example shows three rich text content controls grouped (nested) in a restricted content rich text control container. Rich text controlsįirst let's look at problems associated with rich text controls. Unfortunately navigating between content controls in documents containing rich text or picture content controls is more problematic. Note: If there are one or more content controls in the document after your assigned "Last" content control then the focus will be set automatically to the content control tagged "First" when you tab out of the "Last" control. Then when you finish in the last content control simply click anywhere in the document and the to exit the content control and the focus will be returned to the content control tagged "First." '"First" = tag property applied to the first control.ĪctiveDocument.SelectContentControlsByTag("First").Item(1).Range.Select '"Last" = tag property applied to the last control. Private Sub Document_ContentControlOnExit(ByVal ContentControl As ContentControl, Cancel As Boolean)
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |