I found a nice piece of code that plays a sound when the cell value changes. It works well if the number in the inequality is an integer but it does not work if it is a decimal as per below. How do I fix it so that it works also for decimals?
[VBA]Private Sub Worksheet_Change(ByVal Target As Range)
Dim Cell As Range
Dim CheckRange As Range
Dim PlaySound As Boolean
Set CheckRange = Range("F2:F250")
For Each Cell In CheckRange
If Cell.Value < -0.05 Then
PlaySound = True
End If
Next
If PlaySound Then
Call sndPlaySound32("C:\windows\media\ding.wav", 1)
End If
End Sub[/VBA]