A
abdou44
Guest
bonsoir tt le monde je veux écrire un programme qui permet si une cellule de la colonne A = textbox2 alors cellule j de la meme ligne égale textbox4
Sub CommandButton4_Click()
Sheets("vente").Activate
For x = 1 To 65536
If Range("A" & x) = UserForm2.TextBox3.Value Then
Range("k" & x).Value = UserForm2.TextBox4.Value
End If
Next
Unload Me
End Sub
Sub CommandButton4_Click()
Sheets("vente").Activate
For x = 1 To 65536
If Range("A" & x) = UserForm2.TextBox3.Value Then
Range("k" & x).Value = UserForm2.TextBox4.Value
End If
Next
Unload Me
End Sub