Automated Reports issue

markee401

New Member
Joined
Jul 29, 2014
Messages
1
I need to have excel check sequel server every 10 minutes. I need to send an e-mail notification if a value changes 5 between the checks. The sequel server is no the issue or having excel automatically open in my background. I cannot figure out how to make it remember the first value between checks.

Basically I have function right that sums total bad parts. I want an e-mail alert if 5 bad parts occur within an hour. The hour needs to be a rolling hour. I have a VBS to check and run my sum functions and server connection every 10 minutes.
Here is the program thus far:

Dim x As Integer
Dim y As Integer
Sheets("Report").Select
Call Alignment
'Call sum
x = Cells(12, 21)
If x > y Then
Call Mail_ActiveSheet
Call Clear_Data
End If
y = Cells(12, 21) + 5
End Sub
 

Excel Facts

How can you turn a range sideways?
Copy the range. Select a blank cell. Right-click, Paste Special, then choose Transpose.

Forum statistics

Threads
1,217,441
Messages
6,136,643
Members
450,022
Latest member
Joel1122331

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