Hi, I need a code which add text after second word after fullfill condition but the syntax: oPara.Font.Size = 9 is not working, please, write me correct
CheersSub add_after_xml() Dim oPara As Paragraph For Each oPara In ActiveDocument.Paragraphs If Len(oPara.Range.Text) > 1 And oPara.Font.Size = 9 Then With oPara.Range.Words(2) .InsertAfter "</Bold:bb>" .Collapse 0 End With End If Next oPara End Sub