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

تنبيه عند تغيير في خلية


إذهب إلى أفضل إجابة Solved by omar elhosseini,

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

السلام عليكم 

في مجال به خلايا مكتوب و حلايا فارغة .. كيف يمكن الحصول على مسج عند تغيير احدى الخلايا المكتوبة

مع الشكر

ملاحظة : لا يمكن الطلب من خلال ملف 

جربت الكود التالي و لم ينجح 

 

Dim KeyCells As Range

' The variable KeyCells contains the cells that will
    ' cause an alert when they are changed.
'    Set KeyCells = Range("A1:C10")
lastrow = æÑÞÉ11.Cells(rows.Count, "b").End(xlUp).Row
        Set KeyCells = æÑÞÉ11.Range("b2:b" & lastrow)
If Not Application.Intersect(KeyCells, Range(Target.Address)) Is Nothing Then

' Display a message when one of the designated cells has been changed.
        ' Place your code here.
        MsgBox "Cell " & Target.Address & " has changed."

End If

 

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

اخي 

ضع الكود التالي في حدث التغير

 

Private Sub Worksheet_Change(ByVal Target As Range)
'
Dim KeyCells As Range

' The variable KeyCells contains the cells that will
' cause an alert when they are changed.
'    Set KeyCells = Range("A1:C10")
lastrow = æÑÞÉ11.Cells(Rows.Count, "b").End(xlUp).Row
Set KeyCells = æÑÞÉ11.Range("b2:b" & lastrow)
If Not Application.Intersect(KeyCells, Range(Target.Address)) Is Nothing Then

    ' Display a message when one of the designated cells has been changed.
    ' Place your code here.
    MsgBox "Cell " & Target.Address & " has changed."
End If
'
End Sub

 

شاهد المرفق

 

المصنف1.xlsm

 

 

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

الأخ الغالي omar elhosseini

نفس الكود أنا وضعته في مشاركتي و قلت أنني جربته و لم ينجح 

عندما تكتب في خلية فارغة فأنع يعطي رسالة

أنا أريد الرسالة فقط في الخلايا المكتوب فيها و ليست الفارغة

مع الشكر

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

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