suprsnipes
Active Member
- Joined
- Apr 26, 2009
- Messages
- 434
Hi,
I am using a DDE link and want to display a message box. I am using the following code sample but it doesn't display a message box automatically, by this I mean I have to select the cell and push enter, even if the cell matches the statement. I haven't used this type of function before so I appreciate the help.
Can anyone recommend another method?
Regards,
suprsnipes
I am using a DDE link and want to display a message box. I am using the following code sample but it doesn't display a message box automatically, by this I mean I have to select the cell and push enter, even if the cell matches the statement. I haven't used this type of function before so I appreciate the help.
Code:
Private Sub Worksheet_Change(ByVal Target As Excel.Range)
Dim rng As Range
Set rng = Range("A14")
If Not Intersect(Target, rng) Is Nothing Then
If rng = "M" Then
MsgBox "Cell " & _
rng.Address & " = M"
End If
End If
Set rng = Nothing
End Sub
Can anyone recommend another method?
Regards,
suprsnipes