Can Excel Give Audible Alerts??

A

ADE2

Hi

Is it possible using Excel 2002 to get it to give audible alerts whe
an event takes place.

I use Excel for Currency trading,if cell A1 was greater than the valu
in cell A2,i would like to generate a sound alert and also to send a
email alert.

Are either of these possible

Many thanks

Ad
 
D

DNF Karran

I can help with the e-mail- though be aware the later versions of offic
have security settings that make this more difficult (post 2000)

With regards to the sound, the following should work- uses API:

Declare Function sndPlaySound32 Lib "winmm.dll" Alias _
"sndPlaySoundA" (ByVal lpszSoundName As String, _
ByVal uFlags As Long) As Long

Sub PlaySound(FileName As String)
sndPlaySound32 FileName, 0
End Sub

and can be called from the worksheet calculate event

Dunca
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top