Adding a sound in a form buttom

  • Thread starter Thread starter akenyom
  • Start date Start date
A

akenyom

How does one add a sound (wav) when a button is clicked in a form?

Thanks
 
I have been messing around for quite some time trying to enter it in th
code to have it play when the code is ran, but I cannot figure it out
 
akenyom

Try...

Private Sub CommandButton1_Click()
ThisWorkbook.FollowHyperlink Address:="C:\WINNT\MEDIA\DING.WAV"
Unload Me
End Sub

--
XL2002
Regards

William

(e-mail address removed)

| How does one add a sound (wav) when a button is clicked in a form?
|
| Thanks.
|
|
| ---
| Message posted
|
 

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

Back
Top