aragon123321
New Member
- Joined
- Jul 6, 2015
- Messages
- 26
Hello, What I want is for when a number in the column passes a value that I have set, a message will be sent to me.
The code that I have to send me a message is working its just not reading the values that I have in my columns correctly and sending me to many messages even when I have nothing that is passed my control limit.
Hope someone can help thanks so much, first post.
Here is my code:
Sub Check_Numbers()
Dim Cell As Range
On Error Resume Next
For Each Cell In ActiveSheet.Range("C3:C17")
If Cell.Value >= 4 Then Call Send_Messag
Next
Dim Cell As Range
On Error Resume Next
For Each Cell In ActiveSheet.Range("D3:D17")
If Cell.Value >= 7 Then Call Send_Messag
End If
Next
End Sub
The code that I have to send me a message is working its just not reading the values that I have in my columns correctly and sending me to many messages even when I have nothing that is passed my control limit.
Hope someone can help thanks so much, first post.
Here is my code:
Sub Check_Numbers()
Dim Cell As Range
On Error Resume Next
For Each Cell In ActiveSheet.Range("C3:C17")
If Cell.Value >= 4 Then Call Send_Messag
Next
Dim Cell As Range
On Error Resume Next
For Each Cell In ActiveSheet.Range("D3:D17")
If Cell.Value >= 7 Then Call Send_Messag
End If
Next
End Sub
Last edited: