PC Review


Reply
Thread Tools Rate Thread

How can I set an alarm Excel?

 
 
Annell
Guest
Posts: n/a
 
      14th Jan 2010
I would like to set an audible alarm in Excel based on a cell value.
 
Reply With Quote
 
 
 
 
L. Howard Kittle
Guest
Posts: n/a
 
      14th Jan 2010
Try this in the worksheet VBA editor. If the value of A5 is greater than 50
you get a beep.

Private Sub Worksheet_Change(ByVal Target As Range)
Dim frequency As Long
Dim duration As Long
If Target <> Range("A5") Then Exit Sub
If Target.Value > 50 Then
frequency = 4160
duration = 1500
Call Beep(frequency, duration)
End If
End Sub

HTH
Regards,
Howard

"Annell" <(E-Mail Removed)> wrote in message
news:EFE8AA18-3F14-4A92-941D-(E-Mail Removed)...
>I would like to set an audible alarm in Excel based on a cell value.



 
Reply With Quote
 
Otto Moehrbach
Guest
Posts: n/a
 
      14th Jan 2010
Annell
This little macro will cause a beeping sound (one beep) if C5 is greater
than 5. Right-click your sheet tab and select View Code. Paste this macro
into that module. "X" out of the module to return to your sheet. HTH Otto
Private Sub Worksheet_Change(ByVal Target As Range)
If Target.Count > 1 Then Exit Sub
If Not Intersect(Target, Range("C5")) Is Nothing Then _
If Target > 5 Then Beep
End Sub

"Annell" <(E-Mail Removed)> wrote in message
news:EFE8AA18-3F14-4A92-941D-(E-Mail Removed)...
> I would like to set an audible alarm in Excel based on a cell value.


 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
how do i set an alarm to work on excel sd5665 Microsoft Excel Worksheet Functions 1 27th Mar 2010 11:53 PM
How to set an alarm in excel... Fuzzy Microsoft Excel Misc 1 12th Feb 2009 07:39 AM
How can a set an alarm in Excel? =?Utf-8?B?TGF1cmE=?= Microsoft Excel Misc 0 16th Feb 2005 10:27 PM
Setting up an alarm in excel =?Utf-8?B?ZGFydGhfbGFnZXI=?= Microsoft Excel Programming 2 3rd Sep 2004 01:32 PM
Is it possible to set an alarm in EXCEL? Chris FG Microsoft Excel Misc 1 5th Mar 2004 01:03 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 04:58 AM.