Hi all,
I would like to trigger a msgbox when a cell in a worksheet range change from "OK" or "N/A" to "NOK". I have the following code but it is not working (message error is "Object required")... Could you please help me?
Thank you!!
I would like to trigger a msgbox when a cell in a worksheet range change from "OK" or "N/A" to "NOK". I have the following code but it is not working (message error is "Object required")... Could you please help me?
Sub Msgbox_statutchange() Dim R As Range Set R = Sheets("List").Range("R4:R500") If Intersect(Target, R) Is Nothing Then Exit Sub If Target.Value = "NOK" Then MsgBox "Statut has changed to " & Target.Address End If End Sub |
Thank you!!