Codes Excel Vba
Codes Excel Vba
'BOUTON ENREGISTER
Else
ligne = Sheets("Feuil1").Select
ligne = Sheets("Feuil1").Range("A456541").End(xlUp).Row + 1
Cells(ligne, 1) = TextBox1.Value
Cells(ligne, 2) = ComboBox1.Value
Cells(ligne, 3) = TextBox2.Value
Cells(ligne, 4) = TextBox3.Value
Cells(ligne, 5) = TextBox4.Value
Unload UserForm1
UserForm1.Show
Else
End If
End If
End Sub
'BOUTON RECHERCHER
no_ligne = ComboBox1.ListIndex + 2
Else
End If
End Sub
'BOUTON MODIFIER
Sheets("Feuil1").Select
modif = ComboBox1.ListIndex + 2
Cells(modif, 1) = TextBox1.Value
Cells(modif, 2) = ComboBox1.Value
Cells(modif, 3) = TextBox1.Value
Cells(modif, 4) = TextBox1.Value
Cells(modif, 5) = TextBox1.Value
Else
Exit Sub
End If
Unload UserForm1
UserForm1.Show 0
End Sub