
The xml text can be created in any text editor (including Word). The first step is to create the xml text and add the customXMLPart.
Microsoft word content control fields format color how to#
While you can use the one built-in customXMLParts for data mapping, for this discussion I am going to show you how to create your own customXMLPart and map content controls to its data nodes. Selecting one of the customXMLParts displayed provides a listing of the data nodes that can be used for content control mapping.

These built-in customXMLParts cannot be renamed or deleted. Note: Each Word document contains three built-in customXMLParts that are required for Word to function properly. It provides a listing of all customXMLParts available in the document with an option to add a new part.

The pane is displayed on the right hand side of the document. Select Case CSng()Ĭase Is Mapping group>XML Mapping Pane control. Private Sub Document_ContentControlOnExit(ByVal ContentControl As ContentControl, Cancel As Boolean) The table below illustrates the three available appearance properties 1) Bound box, 2) Start\End tags and 3) None with a color property applied to each control. The content control color and appearance properties can be used to apply color and define how the control appears in the document.

If you want your forms to look nice, we recommend that you use the RTF Content Control.ġ. The catch: if you select bold, the entire text turns bold that is, you cannot bold, italic, etc.

It does not support any of the items that RTF supports, except it does allow some attributes such as Italics, Bold, etc. The Plain Text Content Control is just that: plain ASCII text that looks like Courier. There’s an important difference between Rich Text Format (RTF) Content Controls and Plain Text Content Controls. Rich Text Format (RTF) Content Controls support graphics, tables, objects, annotations, custom fonts, and font attributes. Rich Text and Plain Text Content Controls JD Sartain / IDG WorldwideĬombo Box and Drop-Down List Box Properties E. Follow the instructions above to create a Drop-Down List box for number 3, but substitute the favorite restaurant statement with this statement instead: Select the type of store where you most frequently shop.
