S
smudge
I use an add-in that provides my excel worksheet with live streamin
data. As this changes all of my calculations ament accordingly.
I wish to use audio or WAV files to warn and indicate when certai
conditions are met. I have some experience with macros but I am unabl
to get the following code to work:
'Playing WAV-files using VBA in Microsoft Excel
(http://www.exceltip.com/st/Playing_WAV-files_using_VBA_in_Microsoft_Excel/460.html
Or
'Playing sound notes using VBA in Microsoft Excel
(http://www.exceltip.com/st/Playing_sound_notes_using_VBA_in_Microsoft_Excel/461.html)
Any method of playing an audio file would be wonderful. My difficultie
are:
- Do I paste the code into a macro?
- How do I 'Call' the sound when a logical condition (e.g. Cell
A1:A5>=10) is met?
- Will this run automatically, or will I have to run a macro to see i
the condition is met to play the audio?
- Any tips on avoiding a loop sound if a condition doesn't change for
minutes? Perhaps a play once when condition is met, and everytim
thereafter as the live data updates if the condition is still met, e.g
LESS than stated value, so as data is streamed:-
A1:A5 = 10 = Play audiofile1 Once. (First Stream Update)
A1:A5 = 11 = Play audiofile2 Once. (Second Stream Update)
A1:A5 = 08 = Less than 10 so no audio sounded. (Third Stream Update)
Many thanks in advance
data. As this changes all of my calculations ament accordingly.
I wish to use audio or WAV files to warn and indicate when certai
conditions are met. I have some experience with macros but I am unabl
to get the following code to work:
'Playing WAV-files using VBA in Microsoft Excel
(http://www.exceltip.com/st/Playing_WAV-files_using_VBA_in_Microsoft_Excel/460.html
Or
'Playing sound notes using VBA in Microsoft Excel
(http://www.exceltip.com/st/Playing_sound_notes_using_VBA_in_Microsoft_Excel/461.html)
Any method of playing an audio file would be wonderful. My difficultie
are:
- Do I paste the code into a macro?
- How do I 'Call' the sound when a logical condition (e.g. Cell
A1:A5>=10) is met?
- Will this run automatically, or will I have to run a macro to see i
the condition is met to play the audio?
- Any tips on avoiding a loop sound if a condition doesn't change for
minutes? Perhaps a play once when condition is met, and everytim
thereafter as the live data updates if the condition is still met, e.g
LESS than stated value, so as data is streamed:-
A1:A5 = 10 = Play audiofile1 Once. (First Stream Update)
A1:A5 = 11 = Play audiofile2 Once. (Second Stream Update)
A1:A5 = 08 = Less than 10 so no audio sounded. (Third Stream Update)
Many thanks in advance