My date placeholder text gets formatted the same way as Content Control value text (in my example above it is wdBlack. To edit source or a placeholder, select it, then click to the down arrow and choose Edit Source from the drop-down menu (in this example, the citation is. For some reason when I include: If cc.Type = wdContentControlDropdownList Or cc.Type = wdContentControlComboBox Or cc.Type = wdContentControlDate Then It would also be nice to loop through Date Picker fields and apply standard formatting and placeholder text as well. What other Word Content Control font defaults am I missing? I would like to "fix" the existing form if possible. To edit the text on your cover page, hover your mouse over the placeholder text, then click to see the cursor. However, so many changes were made to it by other people (which in turn messed up some of the build in formatting) that rolling back to my "clean" version and starting over would be a lot of work. I am not at all familiar with Microsoft Word but I was able to create the form and extract data.
If cc.Type = wdContentControlDropdownList Or cc.Type = wdContentControlComboBox Then Here is the script: Sub Demo()įor Each cc In ActiveDocument.ContentControls As I mentioned in my comments, I when I select something then go back to the placeholder by selecting the first dropdown item that is by default the same as the placeholder the format gets reset again.
I created a simple macro that loops through my fields and changes fonts for both, placeholders and values but it does not change all the defaults. I would appreciate any suggestion, either using a VBA script or Word object properties. & "Click the ""empty"" or ""title"" tag of the" _Ĭan something similar be done to apply the default Word Content Control formatting (such as placeholder text takes paragraph default formatting and a certain shade of gray until it is overwritten at which time it is no longer grayed out)? I have close to 80 Content Controls in that form and hope to streamline the process without having to start from scratch. MsgBox "You must select a single ContentControl." & vbCr + vbCr _ SetPlaceHolderText, , InputBox("Type your new placeholder text below.", _ I use the following macro shared by Greg Maxey to set placeholder text a lot: Sub SetPlaceHolderText() In addition, I am thinking of automating the process using a VBA macro.
#Website placeholder text in word 2016 how to#
I can edit placeholder text font style and size in Design Mode, but I cannot figure out how to make sure that placeholder text is grayed out (same shade of gray) and fields value text is not. The font seems to have inconsistent size, style and shade of gray. Other fields have placeholder text that is not grayed out at all.
Some fields stay grayed out even after you fill them out. It is a really long form with a variety of fields and field types (drop down lists, text boxes, combo boxes, check boxes, etc.) After a couple of months and multiple edits it came back to me with inconsistent formatting of field values and placeholder text values. Please find the following UG documentations links for your reference.I have created a Microsoft Word Form using interactive Content Controls. If your requirement is to replace document contents dynamically from the database then you can use Mail merge functionality of DocIO. If your requirement is to replace same text throughout the Word document then you can use Find and Replace functionality of DocIO. If you are creating a Microsoft Word document, template or mockup and you want to create placeholder text, you can generate random text using the built-in. Mail merge functionality of DocIO helps to replace the Word document contents with the data from the data source using the Merge fields. Find and Replace functionality of DocIO helps to find a given text in the Word document and replace the same with the new text.