Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Calling VBA Function

Hi! I'm trying to 'ask' Excel to Beep evrytime a condition turns TRUE. For
example, every time cell A3 equals 10, beep. I did a Sub Noise () in VBA so I
could call that Sub in that If statement but how can I do it?

Thanks
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 857
Default Calling VBA Function

Put the code below in the worksheet code module. Do this by right-clicking
on the sheet tab, and select view code. Then paste this:

Private Sub Worksheet_Change(ByVal Target As Range)
If Target.Address = "$A$3" And Target.Value = 10 Then Beep
End Sub



"João" wrote:

Hi! I'm trying to 'ask' Excel to Beep evrytime a condition turns TRUE. For
example, every time cell A3 equals 10, beep. I did a Sub Noise () in VBA so I
could call that Sub in that If statement but how can I do it?

Thanks

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
Calling a function in my SQL-DB from VBA KSor Excel Discussion (Misc queries) 0 March 11th 09 02:08 PM
Calling DLL function DualCoreKaps2004 Excel Programming 0 January 23rd 07 05:59 AM
Help with calling a function CR[_4_] Excel Programming 5 May 23rd 06 03:38 PM
calling a function dmexcel Excel Programming 5 February 23rd 06 12:02 PM
Calling Function mattsvai[_18_] Excel Programming 4 February 13th 06 10:49 PM


All times are GMT +1. The time now is 12:30 PM.

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"