![]() ![]() To ease this workload, I have created simple template add-in that contains a macro procedure which will loop through each content control in your document, display the properties dialog, and provides a custom dialog for setting the placeholder text. When you create a new template or document using lots of content controls all of the mouse work involved in setting properties and custom placeholder text can become quite laborious. Document supports two kinds of Content Controls you can use BlockContentControl as a block element, and InlineContentControl as an inline element. See: Installing Macros for instructions on how to set up and use the macros provided in this Microsoft Word Help & Microsoft Word Tips page. The following example create a new drop-down list content control and adds several items to the list. Note: For an interesting summary of content control placeholder text oddities, see: 5 Curiosities about Placeholders in Word Content Controls (for developers). Use the Type parameter of the method to specify the type of content control to create. The document is showing text with content controls as grayed out. Chose to edit the document in Word Web App. Logged into Skydrive and opened the document using Word Web App. If you are familiar with the Word object module you may notice from the code above that the ContentControl object has a property ".PlaceholderText." and that property itself is an object and not a string!! Created a simple document with rich text content control and plain text content controls in Word 2010 on my laptop. & "Click the ""empty"" or ""title"" tag of the" _ MsgBox "You must select a single ContentControl." & vbCr + vbCr _ SetPlaceHolderText, , InputBox("Type your new placeholder text below.", _ There is no method in the properties dialog to modify the placeholder text. The following illustrations show the default placeholder text for a plain text (left) and dropdown content control (right) and the corresponding properties dialog. For reasons unknown to me, Microsoft left out the option in this dialog to modify the placeholder text. With the "Properties" command in the Controls group you can set the properties for the various control types. Like the picture content control, the checkbox does not use placeholder text. Note: Word 2010 added an eight "Checkbox" content control. Six of the seven control types includes a default placeholder text (the Picture content control does not use placeholder text). Using the "Controls" group on the Developer tab you can insert one of seven different content controls in your Word document. If you haven't used these yet then be sure to enable the Developer tab of your Word 2007 application and check them out. I think that content controls are, without a doubt, the best enhancement in Word 2007. Follow these steps to edit: Go to File > Info. ![]() The purpose of this Microsoft Word Tips & Microsoft Word Help page will show you how you can quickly modify content control properties including the placeholder text. If you receive or open a document and can't make any changes, it might be Open for viewing only in Protected View. ![]()
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |