
Laura W. answered 04/23/19
Microsoft Office Trainer and Author
So far, Microsoft doesn't provide a way to have different formats for the label in a caption and the caption itself. However, there is a macro that achieves this beautifully. I've used it in a file with hundreds of captions. I did not create this macro, but found it in a forum and have provided the link here:
https://answers.microsoft.com/en-us/msoffice/forum/msoffice_word-mso_other/is-there-a-way-to-have-caption-label-number-in/633ed410-8fb6-4108-bca0-112efd5ac587
It was written by someone with the username hongcc1.
Here is the code, which you can also find at the link above. Just copy and paste it into the Visual Editor and then run the macro called CaptionBold.
Sub CaptionBold()
Application.ScreenUpdating = False
With ActiveDocument.Range
With .Find
.ClearFormatting
.Text = “”
.Style = “Caption”
.Replacement.Text = “”
.Forward = True
.Wrap = wdFindStop
.Format = True
.MatchCase = False
.MatchWholeWord = False
.MatchWildcards = False
.MatchSoundsLike = False
.MatchAllWordForms = False
.Execute
End With
Do While .Find.Found
With .Paragraphs.Last.Range.Duplicate
.End = .Start + Len(Split(.Text, ” “)(0)) + 1
.MoveEndUntil ” “, wdForward
.Style = “Strong”
End With
.Collapse wdCollapseEnd
.Find.Execute
Loop
End With
Application.ScreenUpdating = True
End Sub