+ Reply to Thread
Results 1 to 7 of 7

using sound in excel

  1. #1
    Registered User
    Join Date
    09-14-2008
    Location
    Nor Cal
    Posts
    9

    using sound in excel

    my boss really likes to micro-manage so i would like to mess with him.

    how would i go about adding sound when you select a page of a wook book?

    thanks for the help in advance

  2. #2
    Forum Contributor VBA Noob's Avatar
    Join Date
    04-25-2006
    Location
    London, England
    MS-Off Ver
    xl03 & xl 07(Jan 09)
    Posts
    11,988
    Right click the sheet tab > select view code > paste in the below.

    When that sheet is activated it will beep

    Please Login or Register  to view this content.
    or try link
    http://spreadsheetpage.com/index.php...nd_from_excel/
    VBA Noob
    _________________________________________


    Credo Elvem ipsum etian vivere
    _________________________________________
    A message for cross posters

    Please remember to wrap code.

    Forum Rules

    Please add to your signature if you found this link helpful. Excel links !!!

  3. #3
    Registered User
    Join Date
    09-14-2008
    Location
    Nor Cal
    Posts
    9
    Quote Originally Posted by VBA Noob View Post
    Right click the sheet tab > select view code > paste in the below.

    When that sheet is activated it will beep

    Please Login or Register  to view this content.
    or try link
    http://spreadsheetpage.com/index.php...nd_from_excel/
    VBA Noob


    i got the beep to work but i was looking for exactly what was on the link

    i am having trouble getting it to play. i pasted it in VBA and changed teh file name to match the wav file and no sound, i made sure that the wave file and workbook were in the same directory???

    Please Login or Register  to view this content.

  4. #4
    Forum Expert
    Join Date
    12-24-2004
    Location
    Sweden
    Posts
    1,256

    Talking The best line of VBA ever

    I don't know if this is true but I certainly smiled when I read this article.
    http://www.excelguru.ca/blog/2008/05...e-of-vba-ever/

    And I laughed out loud when I tried this:
    Private Sub Worksheet_Change(ByVal Target As Range)
    'Author : Ken Puls (www.excelguru.ca)
    'Macro Purpose: Read aloud any values entered into the worksheet
    ' Application.Speech.Speak Target.Value
    Application.Speech.Speak "Error: You fat-fingered the value... try exercising"
    End Sub
    It will probably wast a few minutes around the office
    //Ola


    The quotes comes from Danny's comment:
    "Error: There are no consonants in a dollar amount"
    "Error: Nice try, why don't you take a break and try again later"
    "Error: You fat-fingered the value... try exercising"

  5. #5
    Registered User
    Join Date
    09-14-2008
    Location
    Nor Cal
    Posts
    9
    i love it, now if i can just find it for a tab instead of a value i would be on it.

    thanks everyone for the help

  6. #6
    Forum Expert
    Join Date
    12-24-2004
    Location
    Sweden
    Posts
    1,256
    Press Alt+F11 and paste the code in Sheet1 to play only in Sheet1.
    //Ola

    Someone might contribute to a randomizer or delay between two messages, to spice up the surprise.

  7. #7
    Registered User
    Join Date
    09-14-2008
    Location
    Nor Cal
    Posts
    9
    i understand that but i was hoing to find something that would play when you selected sheet2 even if you didnt edit any cell but just by selecting that sheet

+ 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. Filter external data based on value in Excel?
    By obiwaynekenobi in forum Excel General
    Replies: 1
    Last Post: 01-24-2008, 11:55 PM
  2. Excel Macro - Read excel & read excel range - save as text
    By se.sathish in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 01-21-2008, 09:00 AM
  3. Excel 2007 file save problems
    By JVD in forum Excel General
    Replies: 1
    Last Post: 01-15-2008, 04:48 PM
  4. new instance Excel application
    By extreme in forum Excel General
    Replies: 3
    Last Post: 06-25-2007, 12:41 AM
  5. how to merge data from one excel into another excel
    By refreshplease3 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 10-23-2006, 08:51 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