Results 1 to 5 of 5

Auto "Beep" sound doesn't work

Threaded View

  1. #1
    Registered User
    Join Date
    05-16-2012
    Location
    HK
    MS-Off Ver
    Excel 2010
    Posts
    7

    Auto "Beep" sound doesn't work

    Dears,

    Here is my VBA to make "Beep" sound when "a1" cell is =1, it can work when i put 1 into "a1" cell manually, but it doesn't work when run with macro. Pls help!!

    byron


    Private Sub Worksheet_Change(ByVal Target As Range)
    If Range("a1") = 1 Then
    Application.Wait (Now + TimeValue("0:00:01"))
    Beep
    Application.Wait (Now + TimeValue("0:00:01"))
    Beep
    End If
    
    End Sub
    Last edited by Leith Ross; 05-21-2012 at 12:16 PM. Reason: Added Code Tags

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