1) <s>Hai Dani</s>
2) <s>HAI DANI</s>
3) <s>hai dani</s>
This code gives correct output for only first sentence
Selection.Find.ClearFormatting
Selection.Find.Replacement.ClearFormatting
With Selection.Find.Replacement
.Font.SmallCaps = True
End With
With Selection.Find
.Text = "\<s\>(*)\</s\>"
.Replacement.Text = "\1"
.Forward = True
.Wrap = wdFindContinue
.Format = True
.MatchCase = False
.MatchWholeWord = False
.MatchAllWordForms = False
.MatchSoundsLike = False
.MatchWildcards = True
.Font.AllCaps = False
End With
Selection.Find.Execute Replace:=wdReplaceAll
I need correct output for remaining sentences
please help me
thanks in advance