A family of Microsoft word processing software products for creating web, email, and print documents.
Try the following, inserting the name of your required style in place of [bold style]:
Selection.HomeKey wdStory
Selection.Find.Font.Bold = True
With Selection.Find
Do While .Execute(FindText:="", Forward:=True, _
MatchWildcards:=False, Wrap:=wdFindStop, MatchCase:=True) = True
If Left(Selection.Style, 7) <> "Heading" Then
Selection.Style = "[bold style]"
Selection.Collapse wdCollapseEnd
End If
Loop
End With
and the same code with appropriate substitutions for Italic