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

اضافة تنبيه عند المسح


إذهب إلى أفضل إجابة Solved by حمادة عمر,

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

الساده الافاضل

الاخوة الاعزاء

السلام عليكم

ارجو اضافه تنبيه  ( تحذير عند المسح ) في هذا الكود

Sub delete_data()
  Application.ScreenUpdating = False
    Range("B5:B35" & ",F5:F35" & ",H5:H35" & ",L5:L35").ClearContents
  Application.ScreenUpdating = True
End Sub

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

  • أفضل إجابة

الاخ الكريم

جرب الكود بعد هذا التعديل البسيط حسب فهمي لطلبك

Sub delete_data()
  Application.ScreenUpdating = False
  sama = MsgBox("سيتم الغاء وحذف البيانات؟هل انت متأكد من اجراء هذه العملية", vbYesNo)
      If sama = vbYes Then
      Range("B5:B35" & ",F5:F35" & ",H5:H35" & ",L5:L35").ClearContents
      Else
      MsgBox "!! لم يتم الحذف"
      End If
  
  Application.ScreenUpdating = True
End Sub
رابط هذا التعليق
شارك

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