i'm trying to write some simple code that runs a macro on an event change. i'm starting with something simple, but i can get anything that starts with a private sub to work, such as...
Private Sub Worksheet_Change(ByVal Target As Range)
If ActiveCell.Text = "N" Then
MsgBox "You must enter a reason code!"
End If
End Sub
excel is doing nothing. do i need to modify excel's settings or add some code to my vba module?
thanks
Private Sub Worksheet_Change(ByVal Target As Range)
If ActiveCell.Text = "N" Then
MsgBox "You must enter a reason code!"
End If
End Sub
excel is doing nothing. do i need to modify excel's settings or add some code to my vba module?
thanks