Can anyone help, hard excel task need a little more help.

aragon123321

New Member
Joined
Jul 6, 2015
Messages
26
Hey guys does anyone have any clues on how to do this, I am having a hard time.

Here is what I am going for.
-----------------------------------------------------------------------------------------------------------
I would like a script that will check a range of data automatically every 10 minutes.

Every time it checks the data I would like it to send me a message if there is a error.

After there is a error and it messages me I want it to continue to update every 10 minutes and keep checking for more errors.

If there is another error I would like it to tell me about the new error but not the old error.

I would like it to keep doing this until I stop the macro.
-----------------------------------------------------------------------------------------------------------

Here is code to automatically update every 10 minutes.( This does not work very well)
-----------------------------------------------------------------------------------------------------------
Private Sub Timed_Pull()


Dim Pull1 As String
Dim MonitoringStartTime As Date
Dim offsettime As Date


offsettime = #12:10:00 AM#


Pull1 = Now
MonitoringStartTime = TimeValue(Pull1) - #12:10:00 AM#




Call GetData_FABSCOPE
Range("F1").Value = "Monitoring Start Time:"
Range("G1").Value = MonitoringStartTime
-----------------------------------------------------------------------------------------------------------

Here is code to check cell values ( I need it to be able to not send me data that I have already been told about already.)
-----------------------------------------------------------------------------------------------------------
Sub CheckValues()
Dim Cell, Result As String, I As Long
Dim strbody As String
For I = 3 To 38
If Cells(I, 6).Value = 6 Then


Call Send Message


Exit Sub
End If


Next
Range("K27").Value = "pass"
Exit Sub
End Sub
-----------------------------------------------------------------------------------------------------------

My code to send message works good.
Its just call sub Sendmessage()
 

Excel Facts

Wildcard in VLOOKUP
Use =VLOOKUP("Apple*" to find apple, Apple, or applesauce

Forum statistics

Threads
1,223,903
Messages
6,175,279
Members
452,630
Latest member
OdubiYouth

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top