Bonjour, très certainement a cause d'une boucle qui continue de tourner, pour éviter ceci il faut rajouter un "exit sub" pour dire, si il n'y a pas de numéro trouvé, sortir de la macro. Vous pouvez copier le code ci-dessous j'ai rajouté le exit sub
Sub recherche()
Dim Premier_passage As Boolean
Premier_passage = True
motclé = InputBox("Numéro de plan à chercher :", "Moteur de recherche", "Exemple: 221500")
If motclé = "" Then
Exit Sub
Else
For Each ws In Worksheets
With ws.Columns("K:K")
Set re = .Find(motclé, lookat:=xlWhole)
If Not re Is Nothing Then
fa = re.Address
Do
If Premier_passage = False Then
If MsgBox("Un autre résultat à été trouvé, aller à celui ci ?", vbYesNo, "Résultat de la recherche") = vbNo Then Exit Sub
End If
Premier_passage = False
ws.Activate
re.Select
Set re = .FindNext(re)
Loop Until re Is Nothing Or re.Address = fa
Else
MsgBox ("Numéro inexistant")
Exit Sub
End If
End With
Next
End If
End Sub