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. I think that content controls are, without a doubt, the best enhancement in Word 2007. If you haven't used these yet then be sure to enable the Developer tab of your Word 2007 application and check them out. You won't be disappointed. Using the 'Controls' group on the Developer tab you can insert one of seven different content controls in your Word document. Six of the seven control types includes a default placeholder text (the Picture content control does not use placeholder text). Modern JavaScript rich text editor with a modular architecture. Its clean UI and features provide the perfect WYSIWYG UX ️ for creating semantic content. Written in ES6 with MVC architecture, custom data model, virtual DOM. The Controls section has about eight different options that can be added to your Word document: Rich Text, Plain-Text, Picture, Building Block Gallery, Checkbox. Note: Word 2010 added an eight 'Checkbox' content control. Like the picture content control, the checkbox does not use placeholder text. With the 'Properties' command in the Controls group you can set the properties for the various control types. For reasons unknown to me, Microsoft left out the option in this 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. There is no method in the properties dialog to modify the placeholder text. Sub SetPlaceHolderText() Dim strText As String If Selection.Range.ContentControls.Count = 1 Then On Error GoTo Err_Handler With Selection.Range.ContentControls(1) strText =.PlaceholderText.Value.SetPlaceHolderText,, InputBox('Type your new placeholder text below.' , _ 'Define Placeholder Text', strText) End With Else MsgBox 'You must select a single ContentControl.' & vbCr + vbCr _ & 'Click the 'empty' or 'title' tag of the' _ & ' ContentControl you want to modify.' End If Exit Sub Err_Handler: End Sub 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!! Note: For an interesting summary of content control placeholder text oddities, see:. See: for instructions on how to set up and use the macros provided in this Microsoft Word Help & Microsoft Word Tips page. 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. 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. Did you know that you can create forms in Word that people can fill out? When you hear about fillable forms, it is almost always related to Adobe and PDF documents because that’s the most popular format. However, Word is also quite a powerful tool and you can use it to quickly create forms that you can either print or send via email, etc.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. Archives
March 2019
Categories |