Bonjour,
A adapter.
Cdlt.
Private Sub Worksheet_Change(ByVal Target As Range)
Dim ws As Worksheet, Cell As Range
If Not Intersect(Target, Range("C4:D4")) Is Nothing And Target.Count = 1 Then
If Not IsEmpty(Target) Then
Set ws = Worksheets("Rapport 1")
Select Case Target.Address(0, 0)
Case "C4":
Set Cell = ws.Range("A2:A38949").Find(VBA.UCase(Target.Value), , xlValues, xlWhole)
If Not Cell Is Nothing Then
'---
'---
End If
Case "D4":
Set Cell = ws.Range("B2:B38949").Find(VBA.UCase(Target.Value), , xlValues, xlWhole)
If Not Cell Is Nothing Then
'---
'---
End If
End Select
If Cell Is Nothing Then MsgBox "Vérifier l'orthographe !", 64, "Information"
End If
End If
End Sub