Assign sub routine to ActiveSheet.OnEntry : Worksheet OnEntry « Excel « VBA / Excel / Access / Word






Assign sub routine to ActiveSheet.OnEntry

 
Sub Auto_Open()
    ActiveSheet.OnEntry = "Action"
End Sub
Sub Action()
    If IsNumeric(ActiveCell) Then
        ActiveCell.Font.Bold = ActiveCell.Value >= 500
    End If
End Sub

 








Related examples in the same category