Voici la solution qu'on m'a apporté et elle fonctionne
Private Sub Worksheet_BeforeDoubleClick(ByVal Target As Range, Cancel As Boolean)
temp = Array("X", "")
If Not Application.Intersect(Target, Range("B13
1000,AF13:BM1000")) Is Nothing Then
With Target
p = Application.Match(Target, temp, 0)
If Not IsError(p) Then
If p = UBound(temp) + 1 Then p = 0
Else
p = 0
End If
Target = temp(p)
Cancel = True
End With
End If '(Je l'ai retiré)
If Not Application.Intersect(Target, Range("H15:H2000")) Is Nothing Then
Sheets("Planning").Range("h9").Value = Target.Value
Cancel = True
End If
End Sub