Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Excel / New Users / December 2004

Tip: Looking for answers? Try searching our database.

Alarm Sound in Excel

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Roy Harrill - 31 Dec 2004 05:51 GMT
Is there a way I can use conditional formatting or something else to have a
sound (e.g., wav file) play if a value in cell A1 is less than 25?  Note:
Cell A1 is an unattended update of a stock or bond value, so it changes
frequently, and I want to hear a sound if the value goes below 25.
Nick Hodge - 31 Dec 2004 07:27 GMT
Roy

Very dependent on hardware and setup, but this will sound 5 beeps (Or theme
noise if you have them set up) at 1 second intervals, when A1 goes below 25
(It will also sound on each change if the value stays below 25). It goes in
the code module behind the worksheet as it is event code.

(See here: http://www.nickhodge.co.uk/vba/vbaimplement.htm#EventCode)

Private Sub Worksheet_Change(ByVal Target As Range)
Dim x As Integer
If Not Intersect(Target, Range("A1")) Is Nothing Then
   If Target.Value < 25 Then
       For x = 1 To 5
       Beep
       Application.Wait Now + TimeValue("00:00:01")
       Next x
   End If
End If
End Sub

Signature

HTH
Nick Hodge
Microsoft MVP - Excel
Southampton, England
nick_hodgeTAKETHISOUT@zen.co.uk.ANDTHIS

> Is there a way I can use conditional formatting or something else to have
> a sound (e.g., wav file) play if a value in cell A1 is less than 25?
> Note: Cell A1 is an unattended update of a stock or bond value, so it
> changes frequently, and I want to hear a sound if the value goes below 25.
Frank Kabel - 31 Dec 2004 08:05 GMT
Hi
have a look at:
http://j-walk.com/ss/excel/tips/tip87.htm

Signature

Regards
Frank Kabel
Frankfurt, Germany

> Is there a way I can use conditional formatting or something else to have
> a sound (e.g., wav file) play if a value in cell A1 is less than 25?
> Note: Cell A1 is an unattended update of a stock or bond value, so it
> changes frequently, and I want to hear a sound if the value goes below 25.
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.