+ Reply to Thread
Results 1 to 9 of 9

Beep sound when condition met.

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

    Beep sound when condition met.

    Hi all,

    The macro below is adding the SUM cell. Is it possible to make a beep sound when SUM cell value will be the same as one on the left?


    Please Login or Register  to view this content.

  2. #2
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: Beep sound when condition met.

    Have you tried

    Please Login or Register  to view this content.
    Richard Buttrey

    RIP - d. 06/10/2022

    If any of the responses have helped then please consider rating them by clicking the small star icon below the post.

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

    Re: Beep sound when condition met.

    The problem is I have 10s of sum cells in column L and some of them already match. I need a beep only for the ones just matched the value.

  4. #4
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: Beep sound when condition met.

    Hi,

    I don't understand your concern. The code is only testing the single target cell. I'm assuming of course that your codes is in the Sheet Change event. You didn't show the procedure name.

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

    Re: Beep sound when condition met.

    Sample file for review as attached
    Attached Files Attached Files

  6. #6
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: Beep sound when condition met.

    Hi,

    Put this as the first three lines in your procedure

    Please Login or Register  to view this content.
    It will beep whenever you enter a value in column L that has the same value as column K on the same row.
    Last edited by Richard Buttrey; 02-26-2014 at 10:37 AM.

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

    Re: Beep sound when condition met.

    I did it and no beep...


    Please Login or Register  to view this content.

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

    Re: Beep sound when condition met.

    If I put the value manual then I have a beep.
    But when the SUM will get the value it self the its quiet.

  9. #9
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: Beep sound when condition met.

    Hi,

    I hope we're not going round in circles.

    That's what the first code I gave you does. Put it immediately after the Application.EnableEVents = True

    When you subsequently said it didn't work I assumed you'd tried the original but wanted it to work when you manually enter the data.

+ 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. Beep or Make Sound after Calcing
    By [email protected] in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 03-23-2016, 02:32 PM
  2. Play sound when condition is met
    By Rufles in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 02-15-2014, 05:50 AM
  3. Auto "Beep" sound doesn't work
    By byron. in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 05-21-2012, 01:48 PM
  4. [SOLVED] Beep Change The Sound
    By Bob in forum Excel General
    Replies: 0
    Last Post: 07-06-2006, 07:00 PM
  5. can VBA be used to sound a *.wav file on condition(s)?
    By J_J in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 02-23-2005, 04:06 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