Microsoft word using styleref with content controls
If no font is specified, the font assigned to the paragraph where the field resides takes precedence. If you mark the Update Automatically check box in this dialog box, Word inserts a inserts a symbol, by character number, from a specified font. In Chapter 7, “Formatting Documents and Sections,” you learned that you can click Date & Time on the Insert tab to insert a date or time code via a dialog box interface. The following sections explain the types of fields available. To illustrate this for a number, type the number 45.95, select it, and create a bookmark named Price.Learn More Buy Selecting the Right FieldĪ big part of using fields successfully in Word is knowing which fields are available and which are most applicable to a particular situation. You can also use the \* Hex format switch to display the equivalent hexadecimal number and \* Roman format switch to display the number in Roman numerals. In addition, when you create a cross reference to a number or to a date or time with a Date-Time format switch that displays only a single number from the date or time, such as the day of the month or the hour, as the literal text inside a QUOTE field, you can also use the \* CardText format switch to display the number (more precisely, the integer part of the number) in words, the \*OrdText format switch to display the number as ordinal text, or the \* Ordinal format switch to add the appropriate suffix (st, nd, rd, or th) to the applicable Arabic number, and you can add the \* Caps, \* FirstCap, \* Upper, or \* Lower format switch to control capitalization. Similarly, when you create a cross-reference to a bookmarked date and/or time, you can have Word show the bookmarked date and/or time in a different format using the Date-Time format switch For detailed information about using the Date-Time format switch see Modifying the Appearance of Field Results.
When you create a cross-reference to a bookmarked number, you can have Word show the bookmarked number in different formats by using the Numeric format switch (\#) to specify the minimum number of digits that will be displayed and the position of the decimal point and to add commas or spaces as separators and a currency symbol. In addition, cross-references to numbers can be used in calculations using a =(formula) field. This can be especially useful when you want to display the same number, date, or time differently in different places in your document. This way you will remember to type the quotation marks when you really need them.Ĭross-References to Numbers, Dates, and TimesĬross-references to numbers, dates, and times can be configured to show the number or date in different formats. It is also advisable to always enclose the file name in quotation marks (""), because they are needed when the file name or folder name contains a space. Note also that the full path of the file with a double slash (\\) for each slash that ordinarily appears in a file path must be included. Note that the curly brackets surrounding the field code represent the special curly brackets for field codes, which you can create by selecting the applicable field codes and pressing Ctrl+F9. If no bookmark is specified, the INCLUDETEXT field will insert the entire document specified. Including a bookmark in this field is optional. Now if you place your cursor within the word keyboard and press Shift+F9, Word will display the underlying field code instead of the word keyboard.
You can see the REF field underlying a cross-reference by placing your cursor within the text that appears in it and pressing Shift+F9, which displays the underlying field code instead of the bookmarked text.įor example, if you create a bookmark that encloses the name of a product, such as the word keyboard, and assign the name ProductName to the bookmark, and then you create a cross-reference configured as a hyperlink to this bookmark within a sentence somewhere else in your document, the word keyboard will appear at the cross-reference. However, a little knowledge about these fields can enable you to start taking advantage of the numerous options that they offer. As far as I can tell, the Content Control text box feature to support updating the same named control in multiple places. Once again, the new text content controls with the same Title and Tag (Content Properties) do not automatically update. When you create cross-references through the user interface, you do not need to know anything about the REF and other fields that underlie them. I then changed the trust setting to Enable all Macros, exit, and restart. When you create a cross-reference to text enclosed in a bookmark that you created in the active document as described in Bookmarks: The Basics or to the text enclosed in a hidden bookmark that Word creates for a heading, numbered item, figure caption, or table caption, Word creates a REF field containing the name of the bookmark.