aragon123321
New Member
- Joined
- Jul 6, 2015
- Messages
- 26
So I macro that checks some cells and if a limit is passed it calls another sub that send a message.
It is set up now to work when I click a command button to get this macro to work.
Is there any way in Vba for me to have my macro run every hour as long as my PC is on?
Sub Step1()
Dim Cell, Result As String, I As Long
For I = 3 To 2
If Cells(I, 2).Value > Cells(22, 2) Then
Call Step2(" Error Limit Passed 7/16/2015", "5623523859@txt.att.net", "bob.s@bob.bob.com")
Call C
Exit Sub
End If
Next
Range("B1").Value = "pass"
Call C
Exit Sub
End Sub
It is set up now to work when I click a command button to get this macro to work.
Is there any way in Vba for me to have my macro run every hour as long as my PC is on?
Sub Step1()
Dim Cell, Result As String, I As Long
For I = 3 To 2
If Cells(I, 2).Value > Cells(22, 2) Then
Call Step2(" Error Limit Passed 7/16/2015", "5623523859@txt.att.net", "bob.s@bob.bob.com")
Call C
Exit Sub
End If
Next
Range("B1").Value = "pass"
Call C
Exit Sub
End Sub