+ Reply to Thread
Results 1 to 7 of 7

userform sound

  1. #1
    Forum Contributor max_max's Avatar
    Join Date
    06-28-2013
    Location
    italy - venice
    MS-Off Ver
    Excel 2007
    Posts
    1,540

    userform sound

    Hello everyone.
    In the workbook is attached 1 userform.
    To view this userform is the beep sound.
    you can change the sound with another type "boom" (explosion).
    I hope I explained.
    max_max
    -----------------------------------------------------------------------
    Salve a tutti.
    Nel workbook allegato c' 1 userform.
    Alla visualizzazione di questa userform c' il sound beep.
    possibile cambiare il suono con un'altro tipo "boom" (esplosione).
    Spero di essermi spiegato.
    max_max
    Attached Files Attached Files

  2. #2
    Forum Guru MarvinP's Avatar
    Join Date
    07-23-2010
    Location
    Woodinville, WA
    MS-Off Ver
    Office 365
    Posts
    15,249

    Re: userform sound

    Hi Max,

    Was there a question in your post? Or, were you simply showing us how to do something? If it was an example, you might want to put it in a different section. The section of Tips might be a*better place for this post.
    One test is worth a thousand opinions.
    Click the * Add Reputation below to say thanks.

  3. #3
    Valued Forum Contributor Maudibe's Avatar
    Join Date
    12-21-2016
    Location
    USA
    MS-Off Ver
    2010-2013
    Posts
    326

    Re: userform sound

    max,

    If you are looking for a way to play a sound when your form opens, you can use something like this,

    In a standard module:
    Please Login or Register  to view this content.
    The above path is the Windows 10 path for default system media files.

    HTH,
    Maud

  4. #4
    Forum Expert
    Join Date
    04-23-2009
    Location
    Matrouh, Egypt
    MS-Off Ver
    Excel 2013
    Posts
    6,742

    Re: userform sound

    Hello Maud
    This line in your code would prevent the following to run till the form is closed
    Please Login or Register  to view this content.
    So I think it would be modeless
    Please Login or Register  to view this content.
    < ----- Please click the little star * next to add reputation if my post helps you
    Visit Forum : From Here

  5. #5
    Valued Forum Contributor Maudibe's Avatar
    Join Date
    12-21-2016
    Location
    USA
    MS-Off Ver
    2010-2013
    Posts
    326

    Re: userform sound

    Yes, Thank you. Or play the sound prior to the form opening

  6. #6
    Forum Contributor max_max's Avatar
    Join Date
    06-28-2013
    Location
    italy - venice
    MS-Off Ver
    Excel 2007
    Posts
    1,540

    Re: userform sound

    Hello,
    I inserted the macro in the module but it does not work.
    max_max
    Attached Files Attached Files
    Last edited by max_max; 02-05-2017 at 04:44 AM.

  7. #7
    Forum Expert
    Join Date
    04-23-2009
    Location
    Matrouh, Egypt
    MS-Off Ver
    Excel 2013
    Posts
    6,742

    Re: userform sound

    In ThisWorkbook module put this code instead
    Please Login or Register  to view this content.

+ 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. Sound Circular
    By getafixkwik in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 05-10-2016, 11:40 PM
  2. Turn on sound using VBA
    By cguldmann in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 01-24-2015, 03:52 PM
  3. Sound keeps looping?
    By energia in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 01-30-2013, 09:06 AM
  4. Sound problem
    By Macaco in forum Excel General
    Replies: 0
    Last Post: 04-15-2007, 01:43 PM
  5. [SOLVED] Sound alert
    By Antonio in forum Excel General
    Replies: 3
    Last Post: 05-30-2006, 02:15 PM
  6. automatic sound
    By nasira in forum Excel General
    Replies: 0
    Last Post: 02-15-2006, 11:54 AM
  7. sound
    By pytelium in forum Excel General
    Replies: 3
    Last Post: 07-24-2005, 05:41 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