Sub test()
chaine1 = "machin 11-22.pdf"
chaine2 = "machin 1-22.pdf"
cherche = " 1-22"
contrl1 = InStr(1, chaine1, cherche, vbTextCompare) > 0
contrl2 = InStr(1, chaine2, cherche, vbTextCompare) > 0
MsgBox "chaine1: " & contrl1 & vbCrLf & "chaine2 : " & contrl2
End Sub