Bonjour toutes et tous
coucou Bruno45
@Jeremy253, essaye pour le bouton supprimer
Private Sub btnSupprimer_Click()
' Rows([A1:A1048576].Find(txtNom.Text).Row).EntireRow.Delete
If frmSaisie.txtNom.Value = "" Then
MsgBox "Champ NOM Vide !"
Exit Sub
End If
Set wss = Sheets("Source")
ref_a_sup = frmSaisie.txtNom.Value
rep = MsgBox("Voulez vous vraiment supprimer cette référence ?", vbYesNo)
If rep = vbYes Then
Set Rng = wss.Range("A:P").Find(ref_a_sup, LookIn:=xlValues, lookat:=xlWhole)
If Not Rng Is Nothing Then
wss.Rows(Rng.Row).Delete
MsgBox "Référence " & ref_a_sup & " supprimée"
End If
Set Rng = wss.Range("A:P").Find(ref_a_sup, LookIn:=xlValues, lookat:=xlWhole)
If Not Rng Is Nothing Then
wss.Rows(Rng.Row).Delete
MsgBox "NOM " & ref_a_sup & " a été supprimé "
End If
End If
End Sub
Note:
par contre j'ai remarqué pour le bouton recherche de la colonne M de l'onglet' Source'si une cellule de la date est #REF!
j'ai mis une apostrophe devant ' ' '
' txtVisiteMédicale.Value = Cells(no_ligne, 13).Value
crdlt,
André