G
Guest
I created a macro to sound chimes when a number entered in column C exceeds
360. I need it to work when the number is the result of a calculation rather
than manual entry. Is this possible? Could anyone suggest changes to the
following code to accomplish this please? Thanks!
Option Explicit
Private Sub Worksheet_BeforeDoubleClick(ByVal Target As Range, Cancel As
Boolean)
Application.Run "chimes"
End Sub
Private Sub Worksheet_Change(ByVal Target As Range)
If Target.Column = 3 Then
On Error GoTo errors
If Target.Value > 360 Then GoTo errors
End If
Exit Sub
errors:
On Error GoTo 0
Application.Run "chimes"
End Sub
360. I need it to work when the number is the result of a calculation rather
than manual entry. Is this possible? Could anyone suggest changes to the
following code to accomplish this please? Thanks!
Option Explicit
Private Sub Worksheet_BeforeDoubleClick(ByVal Target As Range, Cancel As
Boolean)
Application.Run "chimes"
End Sub
Private Sub Worksheet_Change(ByVal Target As Range)
If Target.Column = 3 Then
On Error GoTo errors
If Target.Value > 360 Then GoTo errors
End If
Exit Sub
errors:
On Error GoTo 0
Application.Run "chimes"
End Sub