Question : Can I write VBA macros that play sounds?

Can I write VBA macros that play sounds?

Answer : Can I write VBA macros that play sounds?

Yes, you can play WAV and MIDI files, but it requires Windows Application Programming Interface (API) functions . If you’re using Excel 2002 or later, you can take advantage of the Speech object. The following statement, when executed, greets the user by name:
Application.Speech.Speak ("Hello" & Application.UserName)
Random Solutions  
 
programming4us programming4us