Recherche

Solution VBA

Avec une macro :

 

Sub surlignage()
'macro écrite par m@rina
Dim trad As String, Liste As String, ND As Document

Application.ScreenUpdating = False
Selection.HomeKey Unit:=wdStory

'Recherche de tous les mots surlignés
    Do
        Selection.Find.ClearFormatting
        With Selection.Find
        .Highlight = True

            .Execute
        End With

    If Selection.Find.Found Then
        trad = Selection.Text
            If InStr(Liste, trad) = 0 Then
                Liste = Liste & trad & vbCr
            End If
        End If
    Loop Until Not Selection.Find.Found

'On crée le nouveau doc et on y insère les textes trouvés
    Set ND = Documents.Add
    Selection.TypeText Text:=Liste
End Sub

 

Statistiques

France 66,8% France
Chine 8,2% Chine
États-Unis d'Amérique 5,5% États-Unis d'Amérique

Total:

180

Pays
018543972
Aujourd'hui: 221
Hier: 523
Cette semaine: 1.713
Semaine dernière: 3.928
Ce mois: 221