Sub Worksheet_Change(ByVal Target As Range)
If Target.Count > 1 Then Exit Sub
Application.EnableEvents = False
If Not Intersect(Target, [A1]) Is Nothing Then
[A2] = Target
ElseIf Not Intersect(Target, [A2]) Is Nothing Then
[A1] = Target
End If
Application.EnableEvents = True
End Sub
Private Sub Worksheet_Change(ByVal Target As Range)
Select Case LCase(Target.Address(0, 0))
Case "a1": Range("a1:a2") = Target
Case "a2": Range("a1:a2") = Target
End Select
End Sub
Private Sub Worksheet_Change(ByVal T As Range)
Select Case T.Address
Case "$A$1", "$A$2": [a1:a2] = T
End Select
End Sub
NB: Par contre si on saisit une formule en A1 ou A2 , on a un "Houston"