Bonjour,
Je cherche à Supprimer la ligne de mon tableaux contenant ma ref obtenu par un Userform
Je ne peux pas faire EntierRow.Delate car j'ai d'autre tableau a côté.
Dim ref As String, lot As String, LigP As Long, ResultatP As Long
On Error Resume Next
ref = ComboBox1.Value
lot = ComboBox5.Value
With Sheets("PRODUCTION")
For LigP = 2 To .Range("B" & Rows.Count).End(xlUp).Row
If .Range("B" & LigP) = ref And .Range("E" & LigP) = lot Then
Resultat = LigP
Exit For
End If
Next LigP
End With
1 er parti OK
Ici la parti ou j'ai un problème :
Idée 1:
'Sheets("PRODUCTION").listobjects("Tableau2").Range("B" & LigP).Select
'Selection.Range("B" & LigP).Delete
Ou 2 Idée :
'With Sheets("PRODUCTION").ListObjects("Tableau2")
'If .Range("B" & LigP) = ref Then
'.Range("B" & LigP).Row.Delete
'End If
'End With
Je vous remerci par avance de votre aide
Bonne journée
Cobzy