Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 35
Default Excel sound alert

How can I create an audible alert sound in an excel
spreadsheet. For instance, if column B falls below the
sume in column A, I want an alert (sound) or pop-up to
automatically notify me.

Have a Happy New Year!

Thanks
Michelle
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,123
Default Excel sound alert

Try John's Sound example Michelle
http://www.j-walk.com/ss/excel/tips/charts.htm

http://www.j-walk.com/ss/excel/tips/tip87.htm
Playing a Sound Based on a Cell's Value

--
Regards Ron de Bruin
(Win XP Pro SP-1 XL2000-2003)
www.rondebruin.nl



"Michelle" wrote in message ...
How can I create an audible alert sound in an excel
spreadsheet. For instance, if column B falls below the
sume in column A, I want an alert (sound) or pop-up to
automatically notify me.

Have a Happy New Year!

Thanks
Michelle



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 35
Default Excel sound alert


Hi Ron

Thanks alot!!!!

-----Original Message-----
Try John's Sound example Michelle
http://www.j-walk.com/ss/excel/tips/charts.htm

http://www.j-walk.com/ss/excel/tips/tip87.htm
Playing a Sound Based on a Cell's Value

--
Regards Ron de Bruin
(Win XP Pro SP-1 XL2000-2003)
www.rondebruin.nl



"Michelle" wrote in

message ...
How can I create an audible alert sound in an excel
spreadsheet. For instance, if column B falls below the
sume in column A, I want an alert (sound) or pop-up to
automatically notify me.

Have a Happy New Year!

Thanks
Michelle



.

  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11
Default Excel sound alert_new task

Dear Ron,
I am having difficulties on implementing this Excel sound alert function to
an XL application of mine. In my problem, I want to trigger the sound file
depending on the content of two cells (Sheet1's A1 and B1: which should have
10 suitable pairs for triggering). Furthermore, I want to bound the process
of checking these cells content to a automatic check of system time of my
PC. The system clocked should be checked every munite and if the conditions
are met for Sheet1 A1 and Sheet1 B1 then the sound file be played. Can
anyone help me with this please?
I can get into more detail if you or any other group member is interested...

"Ron de Bruin" wrote in message
...
Try John's Sound example Michelle
http://www.j-walk.com/ss/excel/tips/charts.htm

http://www.j-walk.com/ss/excel/tips/tip87.htm
Playing a Sound Based on a Cell's Value

--
Regards Ron de Bruin
(Win XP Pro SP-1 XL2000-2003)
www.rondebruin.nl



"Michelle" wrote in message

...
How can I create an audible alert sound in an excel
spreadsheet. For instance, if column B falls below the
sume in column A, I want an alert (sound) or pop-up to
automatically notify me.

Have a Happy New Year!

Thanks
Michelle





  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,236
Default Excel sound alert_new task


Using the OnTime procedure and an adaption of John's PlaySound.

Private Declare Function PlaySound Lib "winmm.dll" Alias "PlaySoundA" (ByVal
lpszName As String, ByVal hModule As Long, ByVal dwFlags As Long) As Long

Sub testit()
Const SND_ASYNC = &H1
Const SND_FILENAME = &H20000

Application.OnTime Now() + 1 / 24 / 60, "testit"

With Sheet1
If Range("A1").Value = 12 And Range("B1").Value = 15 Or _
Range("A1").Value = 13 And Range("B1").Value = 17 Or _
Range("A1").Value = 15 And Range("B1").Value = 54 Or _
Range("A1").Value = 15 And Range("B1").Value = 22 Or _
Range("A1").Value = 18 And Range("B1").Value = 15 Then
PlaySound ThisWorkbook.Path & "\chimes.wav", 0, SND_ASYNC Or
SND_FILENAME
End If
End With
End Sub


Rob


"___Zoom" wrote in message
...
Dear Ron,
I am having difficulties on implementing this Excel sound alert function

to
an XL application of mine. In my problem, I want to trigger the sound file
depending on the content of two cells (Sheet1's A1 and B1: which should

have
10 suitable pairs for triggering). Furthermore, I want to bound the

process
of checking these cells content to a automatic check of system time of my
PC. The system clocked should be checked every munite and if the

conditions
are met for Sheet1 A1 and Sheet1 B1 then the sound file be played. Can
anyone help me with this please?
I can get into more detail if you or any other group member is

interested...

"Ron de Bruin" wrote in message
...
Try John's Sound example Michelle
http://www.j-walk.com/ss/excel/tips/charts.htm

http://www.j-walk.com/ss/excel/tips/tip87.htm
Playing a Sound Based on a Cell's Value

--
Regards Ron de Bruin
(Win XP Pro SP-1 XL2000-2003)
www.rondebruin.nl



"Michelle" wrote in message

...
How can I create an audible alert sound in an excel
spreadsheet. For instance, if column B falls below the
sume in column A, I want an alert (sound) or pop-up to
automatically notify me.

Have a Happy New Year!

Thanks
Michelle









  #6   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11
Default Excel sound alert_new task

Thanks for your answer Rob,
I have spend some time trying to adopt a solution myself too. I have a
detailed description of the situation in my message with the message info
as:
----------------------------------------------------------
From: "___Zoom"
References:



Subject: Excel sound alert problem
Date: Sat, 3 Jan 2004 10:46:13 +0200
Lines: 197
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 5.50.4522.1200
X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4522.1200
Message-ID:
Newsgroups: microsoft.public.excel.programming
NNTP-Posting-Host: 82.145.234.203
Path: TK2MSFTNGP08.phx.gbl!TK2MSFTNGP10.phx.gbl
Xref: TK2MSFTNGP08.phx.gbl microsoft.public.excel.programming:452897
----------------------------------------------------------------------------
-----------------
as answer to Bob Philips's suggestions yesterday. You may comment on that
and re-unite the thread.
TIA
Zoom

"Rob van Gelder" wrote in message
...

Using the OnTime procedure and an adaption of John's PlaySound.

Private Declare Function PlaySound Lib "winmm.dll" Alias "PlaySoundA"

(ByVal
lpszName As String, ByVal hModule As Long, ByVal dwFlags As Long) As Long

Sub testit()
Const SND_ASYNC = &H1
Const SND_FILENAME = &H20000

Application.OnTime Now() + 1 / 24 / 60, "testit"

With Sheet1
If Range("A1").Value = 12 And Range("B1").Value = 15 Or _
Range("A1").Value = 13 And Range("B1").Value = 17 Or _
Range("A1").Value = 15 And Range("B1").Value = 54 Or _
Range("A1").Value = 15 And Range("B1").Value = 22 Or _
Range("A1").Value = 18 And Range("B1").Value = 15 Then
PlaySound ThisWorkbook.Path & "\chimes.wav", 0, SND_ASYNC Or
SND_FILENAME
End If
End With
End Sub


Rob


"___Zoom" wrote in message
...
Dear Ron,
I am having difficulties on implementing this Excel sound alert function

to
an XL application of mine. In my problem, I want to trigger the sound

file
depending on the content of two cells (Sheet1's A1 and B1: which should

have
10 suitable pairs for triggering). Furthermore, I want to bound the

process
of checking these cells content to a automatic check of system time of

my
PC. The system clocked should be checked every munite and if the

conditions
are met for Sheet1 A1 and Sheet1 B1 then the sound file be played. Can
anyone help me with this please?
I can get into more detail if you or any other group member is

interested...

"Ron de Bruin" wrote in message
...
Try John's Sound example Michelle
http://www.j-walk.com/ss/excel/tips/charts.htm

http://www.j-walk.com/ss/excel/tips/tip87.htm
Playing a Sound Based on a Cell's Value

--
Regards Ron de Bruin
(Win XP Pro SP-1 XL2000-2003)
www.rondebruin.nl



"Michelle" wrote in message

...
How can I create an audible alert sound in an excel
spreadsheet. For instance, if column B falls below the
sume in column A, I want an alert (sound) or pop-up to
automatically notify me.

Have a Happy New Year!

Thanks
Michelle












Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
How do I create a sound alert in excel spreadsheet shaun t Excel Discussion (Misc queries) 8 November 23rd 08 12:09 AM
sound alert from excel dan Excel Discussion (Misc queries) 0 June 26th 06 03:49 AM
Sound alert Antonio Excel Discussion (Misc queries) 3 May 30th 06 07:09 PM
Sound / Audible Alert in a Woksheet ? carl Excel Worksheet Functions 3 July 7th 05 09:17 PM
How can I make a sound alert using macro in Excel! (But not use speaker) bookworm98 Excel Programming 5 December 11th 03 08:49 AM


All times are GMT +1. The time now is 08:13 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"