Code for Range Monitoring / Trigger Shell Command

schelber

Board Regular
Joined
Oct 22, 2005
Messages
172
could someone point me in the right direction for how VBA would look if:

on worksheet Buffer Status:

I have temperature ranges in Rows 7-20, Column G and their minimum threshold in column H and their maximum threshold in column I:

such that if the value in G is > corresponding threshold in I and < than corresponding threshold in H then execute shell command

Shell "C:\Program Files\Skype\Phone\Skype.exe" /callto:+12156522325 AND

run macro 'SendEMail'.........so that a list of mailers will be notified

I already have the SendEMail code working OK and I want to paste this code right into the worksheet called Buffer Status.

Just not sure how it would look.

Thanks for any help on this.......I have not been able to find many examples of shell commands triggered by cell values.

Rich
 

Excel Facts

How can you automate Excel?
Press Alt+F11 from Windows Excel to open the Visual Basic for Applications (VBA) editor.
Rich

Do you want to trigger code when cell values change?
 
Upvote 0
exactly.........i have a spread that has those temp values updated every hour via server over a VPN and should any breach the assigned thershold I want to execute the

SendEMail macro and trigger a macro to execute a shell command below:

"C:\Program Files\Skype\Phone\Skype.exe" /callto:+12156522375

Thanks , Rich
 
Upvote 0

Forum statistics

Threads
1,214,649
Messages
6,120,732
Members
448,987
Latest member
marion_davis

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