اذهب الي المحتوي
أوفيسنا
بحث مخصص من جوجل فى أوفيسنا
Custom Search

كود تأكيد قبل الحفظ


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

السلام عليكم ورحمة الله وبركاته

اريد من الاخوة الافاضل كود لتأكيد الاجراء قبل الحفظ او التعديل  العبارة " هل تريد الحفظ "  " نعم "  " لا "

 

تواتي.rar

2018-03-22_143850.jpg

تم تعديل بواسطه حراثي تواتي
رابط هذا التعليق
شارك

وعليكم السلام

تفضل

 

Private Sub CommandButton1_Click()
Application.DisplayAlerts = False
On Error Resume Next
Sheets(1).Visible = True
Dim iRow As Long
Dim ws As Worksheet
Set ws = Sheets(1)
iRow = ws.Cells(Rows.Count, 1).End(xlUp).Offset(1, 0).Row
TextBox1.SetFocus
MsgBox " هل تريد حفظ البيانات ", vbYesNo
If vbYes Then
ws.Cells(2, 2).Value = Me.TextBox1.Value
ws.Cells(5, 3).Value = Me.TextBox2.Value
ws.Cells(3, 4).Value = Me.TextBox3.Value
Else
TextBox1.SetFocus
End If
On Error GoTo 0
End Sub

 

تم تعديل بواسطه shreif mohamed
رابط هذا التعليق
شارك

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