+ Reply to Thread
Results 1 to 4 of 4

Play sound ONCE when cell value changes

  1. #1
    Forum Contributor
    Join Date
    01-05-2010
    Location
    New York
    MS-Off Ver
    Excel 2016
    Posts
    747

    Play sound ONCE when cell value changes

    The following macro is linked to an IF statement in cell W59. I would like the macro to play only ONCE when the IF statement is true. The macro will continuously play the sound if the reference value in cell 059 changes. Is there a way to modify this method so that the macro only plays a sound ONCE?

    Please Login or Register  to view this content.
    Attached Files Attached Files

  2. #2
    Forum Contributor
    Join Date
    01-05-2010
    Location
    New York
    MS-Off Ver
    Excel 2016
    Posts
    747

    Re: Play sound ONCE when cell value changes

    Can anyone please help me with this? If I am unclear about my problem then I would be more then happy to rephrase anything.

  3. #3
    Forum Contributor
    Join Date
    07-21-2014
    Location
    Norway
    MS-Off Ver
    2016
    Posts
    230

    Re: Play sound ONCE when cell value changes

    Bump on this one, did anyone find out how to play it only once?

  4. #4
    Forum Expert Arkadi's Avatar
    Join Date
    02-13-2014
    Location
    Smiths Falls, Ontario, Canada
    MS-Off Ver
    Office 365
    Posts
    5,059

    Re: Play sound ONCE when cell value changes

    Very old post...
    But as it is asked again today...

    Seems to me any time W59 is calculated, if conditions are met, it plays the sound. Either have the macro remove the if statement from W59 after the sound plays the first time, or use some other cell (can even be in a hidden sheet), that gets updated to "played" when the sound plays. Then include in the macro a condition that this other cell does not already contain "played".

    If it must reset every time the workbook is opened, then use the workbook_open event to reset the "played" cell.
    Last edited by Arkadi; 04-28-2020 at 12:25 PM.
    Please help by:

    Marking threads as closed once your issue is resolved. How? The Thread Tools at the top
    Any reputation (*) points appreciated. Not just by me, but by all those helping, so if you found someone's input useful, please take a second to click the * at the bottom left to let them know

    There are 10 kinds of people in this world... those who understand binary, and those who don't.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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