Bonjour,
Comme indique dans le titre je ne sais plus comment me débarrassé de cette erreur. je travail en VBA Excel
Toutes aides est la bien venue:
J'ai essayé cette version aussi mais sa ne marche pas
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13 Private Sub Worksheet_Change(ByVal Target As Range) 'Application.ScreenUpdating = False Dim I As Integer For I = 2 To 100 If Range(Feuil8.Cells(2, 1)) = Range(Feuil2.Cells(I, 4)) Then Range(Feuil8.Cells(2, 2)) = Range(Feuil2.Cells(I, 5)) Exit For End If Next I 'Application.ScreenUpdating = True End Sub
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13 Private Sub Worksheet_Change(ByVal Target As Range) Application.ScreenUpdating = False Dim I As Integer For I = 2 To 100 If Feuil8.Range("A2") = Feuil2.Range("D" & I) Then Feuil8.Range("B2") = Feuil2.Range("E" & I) Exit For End If Next I Application.ScreenUpdating = True End Sub






Répondre avec citation



Partager