View Single Post
 
Old 10-13-2019, 03:03 PM
therexjones therexjones is offline Windows 10 Office 2016
Novice
 
Join Date: Sep 2018
Posts: 6
therexjones is on a distinguished road
Default Bold Content Control Placeholder

I have a content control on a template, which has the placeholder text in bold. I used design mode to get the text into bold in the first place.

I am trying to create a code that will change the placeholder text (based on options in a userform), but retain the bold formatting.

The code below changed the text, but the bold formatting is lost. What do I need to add to control the formatting?

Code:
Sub ChangePlaceholder()

Dim objCC As ContentControl
 
Set objCC = ActiveDocument.SelectContentControlsByTag("myContentControl").Item(1)
    objCC.SetPlaceholderText , , "New Placeholder Text"

End Sub
Reply With Quote