J
James Frater
Hello All,
I'm exporting results of a table into a table in a Word document.
I can currently change the formatting of the individual word "referee:" but
I'd also like to change the actual name of the referee as well
Example - I'd like the text "Referee:James Frater" to all be size 7,
coloured blue, and bolded.
Any thoughts
JAMES
Set R = WdApp.ActiveDocument.Sections(1).Range
With R.Find
.ClearFormatting
.Text = "Referee: [I'm lost here]
With .Replacement
.ClearFormatting
.Text = ""
.Font.Color = wdColorBlue
.Font.Size = 7
.Font.Bold = True
End With
.Forward = True
.Wrap = wdFindContinue
.Format = True
.MatchCase = False
.MatchWholeWord = False
.MatchWildcards = False
.MatchSoundsLike = False
.MatchAllWordForms = False
.Execute Replace:=wdReplaceAll
End With
I'm exporting results of a table into a table in a Word document.
I can currently change the formatting of the individual word "referee:" but
I'd also like to change the actual name of the referee as well
Example - I'd like the text "Referee:James Frater" to all be size 7,
coloured blue, and bolded.
Any thoughts
JAMES
Set R = WdApp.ActiveDocument.Sections(1).Range
With R.Find
.ClearFormatting
.Text = "Referee: [I'm lost here]
With .Replacement
.ClearFormatting
.Text = ""
.Font.Color = wdColorBlue
.Font.Size = 7
.Font.Bold = True
End With
.Forward = True
.Wrap = wdFindContinue
.Format = True
.MatchCase = False
.MatchWholeWord = False
.MatchWildcards = False
.MatchSoundsLike = False
.MatchAllWordForms = False
.Execute Replace:=wdReplaceAll
End With