Thanks Rick, this is perfect.
I currently have some macros in the same sheet and need help adding your first event code to them.
This is what exists in the sheet when I click on "View Code":
Private Sub Worksheet_Change(ByVal Target As Range)
' ***BLOCK1***
Dim sUndoList As String
On Error Resume Next
If Not Intersect(Target, Range("A1:ZZ1000")) Is Nothing Then
sUndoList = CommandBars.FindControl(ID:=128).List(1)
If Left(sUndoList, 5) = "Paste" Or sUndoList = "Auto Fill" Or sUndoList = "Drag and Drop" Then
Application.EnableEvents = False
Application.Undo
Application.OnUndo "", ""
Application.EnableEvents = True
End If
End If
' ***BLOCK2***
Dim rng As Range
Dim cell As Range
Dim rw As Long
' See if any cells updated in column A
Set rng = Intersect(Target, Range("A:A"))
If rng Is Nothing Then Exit Sub
Application.EnableEvents = False
' Loop through updated cells in column A
For Each cell In rng
rw = cell.Row
Select Case cell.Value
Case "School"
Range(Cells(rw, "H"), Cells(rw, "S")) = "N/A"
Range(Cells(rw, "H"), Cells(rw, "S")).Interior.Color = 15132390
Case Else
Range(Cells(rw, "H"), Cells(rw, "S")) = ""
Range(Cells(rw, "H"), Cells(rw, "S")).Interior.Pattern = xlNone
End Select
Next cell
Application.EnableEvents = True
End Sub
How can I add this event code to the above:
Private Sub Worksheet_Activate()
MsgBox "You just entered this sheet"
End Sub
Private Sub Worksheet_Deactivate()
MsgBox "You just left the sheet"
End Sub
Thank you very much.