Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1
Default How can I set an alarm Excel?

I would like to set an audible alarm in Excel based on a cell value.
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 698
Default How can I set an alarm Excel?

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" wrote in message
...
I would like to set an audible alarm in Excel based on a cell value.



  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1,071
Default How can I set an alarm Excel?

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" wrote in message
...
I would like to set an audible alarm in Excel based on a cell value.


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
Setting a reminder or alarm in Excel wysi Excel Discussion (Misc queries) 3 May 4th 23 12:43 PM
How to set an alarm in excel... Fuzzy Excel Discussion (Misc queries) 1 February 12th 09 08:39 AM
How can I set an alarm in Microsoft Excel Binoj Excel Discussion (Misc queries) 1 January 19th 09 01:57 PM
can I set a date alarm in Excel apache_sim Excel Discussion (Misc queries) 1 December 20th 06 05:16 PM
How can a set an alarm in Excel? Laura Excel Discussion (Misc queries) 0 February 16th 05 11:27 PM


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

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

About Us

"It's about Microsoft Excel"