1 2 3 4 5 6 7 8 9 10 11 12 13 14
| Option Explicit
Private Sub Worksheet_Change(ByVal R As Range)
If Not Intersect(R, Union([ç1], [ç2], [ç1].Rows([ç1].Rows.Count + 1), [ç2].Rows([ç2].Rows.Count + 1))) Is Nothing Then
Dim C1 As Range, C2 As Range, i As Byte
Application.ScreenUpdating = 0
If Application.CountA([ç3]) > 1 Then [ç3].Delete 'nettoie le tableau ç3
For Each C1 In [ç1] 'parcourt le tableau ç1
For Each C2 In [ç2] 'parcourt le tableau ç2
i = i + 1 'ajoute une ligne dans le tableau ç3
[ç3].Item(i, 1) = C1 & " en " & C2 'concatène
Next
Next
End If
End Sub |
Partager