ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   Help Playing a sound if a cell's value chjanges as a result of a calculation (https://www.excelbanter.com/excel-discussion-misc-queries/108199-help-playing-sound-if-cells-value-chjanges-result-calculation.html)

Syd

Help Playing a sound if a cell's value chjanges as a result of a calculation
 
Can someone help me..

I need to use VBA Excel to detect if a cell's value becomes greater or less
than some prescribed values as a result of a calculation and play a sound
whenever it happens.
(If $B3 7 or < 5 ...Play a sound)

The change_event works if I type the value into the cell but I cannot get it
to work if the cells value changes as a result of a calculation.

Please help

Syd



Gary''s Student

Help Playing a sound if a cell's value chjanges as a result of a c
 
The Worksheet change event wo't trigger because of a cell change via
calculation. Try the Worksheet calculate event.
--
Gary's Student


"Syd" wrote:

Can someone help me..

I need to use VBA Excel to detect if a cell's value becomes greater or less
than some prescribed values as a result of a calculation and play a sound
whenever it happens.
(If $B3 7 or < 5 ...Play a sound)

The change_event works if I type the value into the cell but I cannot get it
to work if the cells value changes as a result of a calculation.

Please help

Syd





All times are GMT +1. The time now is 02:42 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com