+ Reply to Thread
Results 1 to 5 of 5

Play sound when condition is met

  1. #1
    Registered User
    Join Date
    02-08-2014
    Location
    Dublin
    MS-Off Ver
    Excel 2013
    Posts
    70

    Play sound when condition is met

    Hi all,

    I've a macro below witch is adding the SUM cell and I'm wandering if I can add somthing here to play a sound when result from "L" match the cell -1 like "K".


    Please Login or Register  to view this content.

  2. #2
    Forum Expert
    Join Date
    02-19-2013
    Location
    India
    MS-Off Ver
    07/16
    Posts
    2,386

    Re: Play sound when condition is met

    you could use another if with offset and in the true part of if use below

    Application.speech.speak("Both are Equal") if you want to play "both are equal" keyword or can use Range(type range or set with variable).value
    Last edited by hemesh; 02-15-2014 at 07:33 AM.
    -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

    WANT TO SAY THANKS, HIT ADD REPUTATION (*) AT THE BOTTOM LEFT CORNER OF THE POST

    More we learn about excel, more it shows us, how less we know about it.

    for chemistry
    https://www.youtube.com/c/chemistrybyshivaansh

  3. #3
    Registered User
    Join Date
    02-08-2014
    Location
    Dublin
    MS-Off Ver
    Excel 2013
    Posts
    70

    Re: Play sound when condition is met

    It sounds good but I don't know how to put that in to my code witch I was helped to create. And also I've a file with sound I want to use it.
    Any help, please?

  4. #4
    Forum Expert
    Join Date
    02-19-2013
    Location
    India
    MS-Off Ver
    07/16
    Posts
    2,386

    Re: Play sound when condition is met

    please upload your file

  5. #5
    Registered User
    Join Date
    02-08-2014
    Location
    Dublin
    MS-Off Ver
    Excel 2013
    Posts
    70

    Re: Play sound when condition is met

    Here yo go
    Attached Files Attached Files

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Play sound ONCE when cell value changes
    By rhudgins in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 04-28-2020, 12:19 PM
  2. programming to play a sound when cell condition is met
    By pip_taker in forum Excel Programming / VBA / Macros
    Replies: 21
    Last Post: 07-18-2014, 03:12 AM
  3. [SOLVED] Play Sound When Conditions are Met
    By Chris632 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 03-31-2013, 04:14 AM
  4. [SOLVED] Play Sound File
    By Soniya in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 02-22-2006, 06:50 AM
  5. Macro to play sound when condition is met
    By eel77 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 02-10-2006, 12:21 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