![]() |
|
|
|
#1
|
|||
|
|||
|
Graham's method may work but it will effect the typed text as well. If you want the PHT to be bold and the typed text normal then you could set the PHT to saved building block entry of the PHT with block font) e.g.,
Code:
If A Then
ActiveDocument.ContentControls(1).SetPlaceholderText ThisDocument.AttachedTemplate.BuildingBlockEntries("PHT1")
Else
ActiveDocument.ContentControls(1).SetPlaceholderText ThisDocument.AttachedTemplate.BuildingBlockEntries("PHT2")
End If
|
|
#2
|
||||
|
||||
|
Quote:
You could get round that with a macro Code:
Private Sub Document_ContentControlOnExit(ByVal ContentControl As ContentControl, Cancel As Boolean)
If ContentControl.Title = "myContentControl" Then
If ContentControl.ShowingPlaceholderText = True Then
ContentControl.Range.Font.Bold = True
End If
End If
End Sub
__________________
Graham Mayor - MS MVP (Word) (2002-2019) Visit my web site for more programming tips and ready made processes www.gmayor.com |
|
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
Partial bold formatting of content control
|
kevinbradley57 | Word | 5 | 05-21-2018 09:22 PM |
Don't Print Content Control Placeholder Text
|
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 |
Deleting a table from a content control -- preserving the content control
|
BrainSlugs83 | Word Tables | 8 | 11-14-2013 03:06 AM |
SlideMaster: Date Placeholder, Footer Placeholder, Slide Number Placeholder?
|
tinfanide | PowerPoint | 1 | 04-05-2013 10:37 AM |