Forum Discussion
junaid2323
Feb 22, 2022Copper Contributor
Looking for help with some text editing.
</li><li class="active-result" data-option-array-index="82">ADVANCES IN EXPERIMENTAL MEDICINE AND BIOLOGY , Discipline: BioChem , Country: United States </li><li class="active-result" data-option-ar...
Feb 23, 2022
junaid2323 Assuming that each entry in the list is in a separate paragraph (Terminated with a pilcrow ΒΆ when the display of non-printing characters is actived), I would use a macro containing the following code
Dim i As Long, j As Long
Dim rng As Range
With ActiveDocument
For i = 1 To .Paragraphs.Count
With .Paragraphs(i)
j = InStrRev(.Range.Text, ">")
Set rng = .Range
rng.End = rng.Start + j
rng.Delete
End With
Next i
End With