Closed Thread
Results 1 to 3 of 3

need an audible alarm when real-time securities data reaches certain trigger points

  1. #1
    Forum Contributor
    Join Date
    02-05-2013
    Location
    Oklahoma City, Oklahoma
    MS-Off Ver
    Excel for Mac 2024
    Posts
    142

    Cool need an audible alarm when real-time securities data reaches certain trigger points

    I need some VBA code that will play a .wav (or other audible) file when trading levels of specified securities reach certain levels. It would be helpful if you could cover each step in the configuration, recognizing that I have no VBA experience (but I'm not afraid to get my hands dirty!). Thanks!!

  2. #2
    Forum Expert
    Join Date
    04-22-2013
    Location
    .
    MS-Off Ver
    .
    Posts
    4,418

    Re: need an audible alarm when real-time securities data reaches certain trigger points

    Combine:
    msdn.microsoft.com/en-us/library/office/ff839775.aspx
    with
    www.cpearson.com/excel/PlaySound.aspx‎Cached

  3. #3
    Forum Contributor
    Join Date
    02-05-2013
    Location
    Oklahoma City, Oklahoma
    MS-Off Ver
    Excel for Mac 2024
    Posts
    142

    Re: need an audible alarm when real-time securities data reaches certain trigger points

    I tried but was not successful in translating the examples provided to my particular problem. I am trying to start an audible alert when the value in cell W9 exceeds a value of 1770. How can I fix the code below?

    Private Sub Worksheet_Change(ByVal Target As Excel.Range)
    If Target.Column = 23 Then
    If Target.Row = 9 Then
    ThisRow = Target.Row
    If Target.Value > 1770 Then
    Public Declare Function sndPlaySound32 _
    Lib "winmm.dll" _
    Alias "sndPlaySoundA" ( _
    ByVal lpszSoundName As String, _
    ByVal uFlags As Long) As Long
    Else
    Const SND_NODEFAULT = &H2
    End If
    End If
    End Sub
    Last edited by okcsteve; 11-14-2013 at 04:45 PM.

  4. #4
    Forum Contributor
    Join Date
    02-05-2013
    Location
    Oklahoma City, Oklahoma
    MS-Off Ver
    Excel for Mac 2024
    Posts
    142

    Re: need an audible alarm when real-time securities data reaches certain trigger points

    Dear yudlugar - thanks for your help but I was unable to use the references to solve my problem. I need to close this thread and repost it in the Commercial Services Forum. Thx for the attempt.

Closed Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Trigger Macro on cell change by real time data
    By boesingen in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 01-04-2013, 04:22 PM
  2. Audible alarm without even opening the workbook
    By mole_man in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 11-13-2012, 09:26 AM
  3. Real Time Data Updating?
    By papermoon in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 06-26-2012, 07:15 PM
  4. Display a visual alert and sound an audible alarm
    By shawnh in forum Excel General
    Replies: 18
    Last Post: 04-11-2012, 07:25 PM
  5. Real-Time Data
    By bobajob in forum Excel General
    Replies: 3
    Last Post: 11-01-2007, 03:00 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1