اذهب الي المحتوي
أوفيسنا

كود حذف عميل لاكمال المشروع


الردود الموصى بها

هلا احمد

 

 

كود الحذف

 

Dim iRow As Long
Dim ws As Worksheet
Dim i As Long


Set ws = Worksheets("data")
iRow = ws.Cells(Rows.Count, 1).End(xlUp).Row


Application.ScreenUpdating = False


For i = 4 To iRow


    If Me.TextBox1.Text = ws.Cells(i, 1).Value Then
        If MsgBox("ÓíÊã ÍÐÝ ÇáÚãíá ÑÞã " & Me.TextBox1.Text & vbCrLf & "åá ÊÑÛÈ ÈÇáãÊÇÈÚÉ¿", vbYesNo + vbMsgBoxRtlReading + vbMsgBoxRight, "ÍÐÝ") = vbYes Then
            ws.Range("A" & i & ":H" & i).Delete
            UserForm_Activate
            MsgBox "Êã ÇáÍÐÝ ÈäÌÇÍ", vbOKOnly, "ÊäÈíÉ"
            Exit For
        End If
    End If
Next


Application.ScreenUpdating = True
Me.TextBox1.SetFocus

جرب المرفق

 

 

 

 

close custumer.zip

رابط هذا التعليق
شارك

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

زائر
اضف رد علي هذا الموضوع....

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • تصفح هذا الموضوع مؤخراً   0 اعضاء متواجدين الان

    • لايوجد اعضاء مسجلون يتصفحون هذه الصفحه
×
×
  • اضف...

Important Information