Sub test()
Dim Dic As Object, A&, B&, Elem, Chaine$
Chaine = "AZEDZEZSDAZEDZFREZQSSUAAZEDZAAAEZQSSU"
Set Dic = CreateObject("scripting.dictionary")
For i = 1 To Len(Chaine)
For B = 5 To Len(Chaine) - (i - 1)
Dic(Mid(Chaine, i, B)) = Dic(Mid(Chaine, i, B)) + 1
Next
Next
'lecture du dico
For Each Elem In Dic
If Dic(Elem) > 1 Then Debug.Print Elem & "--->" & Dic(Elem)
Next
End Sub