+ Reply to Thread
Results 1 to 2 of 2

Play sound dependent upon value of two cells

  1. #1
    Forum Contributor
    Join Date
    03-08-2011
    Location
    London
    MS-Off Ver
    Work Office 365 Home 2019
    Posts
    428

    Play sound dependent upon value of two cells

    Hi Folks.

    I have this macro that will play a sound (wav file) when the value of cell M18 changes to 15

    What I'd like to do is have it check two cells and if the values match then play a wav file

    Here's the current code:
    Please Login or Register  to view this content.
    How can I edit this macro to check two cells (M18 and J13) and play a sound dependent upon the value of those two cells. I can't just use cell J13 as the cell in M18 is a control cell linked to a countdown clock. When it reaches 00:00:30 it changes value and then changes back when it reaches 00:00:29.

    If the value of M18 is 15 and the value of J13 = "25/50" (it's a value and not a calculation) it will play one sound (countdownwav.wav). But,

    If the value of M18 is 15 and the value of J13 = "50/100" it will play a different sound (for the sake of clarity, let's call it sound2.wav).

    If the value of M18 is 15 and the value of J13 = "100/200" it will play sound3.wav

    Appreciate your help guys ;-)

    Terry

  2. #2
    Forum Expert
    Join Date
    06-12-2012
    Location
    Ridgefield Park, New Jersey
    MS-Off Ver
    Excel 2003,2007,2010
    Posts
    10,241

    Re: Play sound dependent upon value of two cells

    Maybe:

    Please Login or Register  to view this content.

+ 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 repeat sound when cells less than 5000
    By keith740 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 11-10-2015, 03:35 AM
  2. play sound every x seconds
    By mokht in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 03-16-2015, 04:05 PM
  3. Play sound when condition is met
    By Rufles in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 02-15-2014, 05:50 AM
  4. Play a sound when a cell contains a certain value
    By SDruley in forum Excel General
    Replies: 1
    Last Post: 07-13-2013, 06:24 PM
  5. Play sound in Excel
    By buffalobill in forum Excel General
    Replies: 4
    Last Post: 11-03-2009, 08:45 AM
  6. [SOLVED] Play Sound File
    By Soniya in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 02-22-2006, 06:50 AM
  7. play a WAV sound in a code... how to do it?
    By bondcrash in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 04-29-2005, 12:57 AM

Tags for this Thread

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