غير كود زر الحذف بهذا الكود
Private Sub ButtonDelete_Click()
Dim iBox
iBox = Application.InputBox("ادخل كلمة المرور لهذا الاجراء", "تأكيد الحذف بكلمة المرور")
If iBox <> "123" Then Exit Sub
If Me.ListFind.ListCount Then Me.ListFind.Clear
MyRngdate.Rows(iRow + 1).EntireRow.Delete
If Not tSr Then GoTo 1
If iRow = ContRow Then GoTo 1
With MyRngSeri
.Cells(iRow + 1, 1).Value = iRow
Range(.Cells(iRow + 1, 1), .Cells(ContRow, 1)).DataSeries
End With
1:
Me.ScrollBar1.Max = ContRow - 1
ScrollBar1_Change
Call MsgBox(" تم حذف السجل بنجاح ", mBox, "الحمدلله")
End Sub
تحياتي