make a sound when a certain value is reached in a specific cell

C

chuck

I would like to have a sound generated when a sum in a specific cell is been
surpassed
 
L

Luke M

Right click on sheet tab, view code, paste this in.

Private Sub Worksheet_Calculate()
If Range("A2").Value > 5 Then Beep
End Sub

Modify as needed.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top