![]() |
#1
|
|||
|
|||
![]()
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 |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
![]() |
kevinbradley57 | Word | 5 | 05-21-2018 09:22 PM |
![]() |
vera | Word VBA | 3 | 07-01-2016 01:57 PM |
How to set the Content Control placeholder default text | dsimon14 | Word VBA | 3 | 03-27-2015 07:15 AM |
![]() |
BrainSlugs83 | Word Tables | 8 | 11-14-2013 03:06 AM |
![]() |
tinfanide | PowerPoint | 1 | 04-05-2013 10:37 AM |