how do I insert music file in word document

J

Jean-Guy Marcil

Melvin said:
when I open a word document I want a music file to start playing. Can I do
this?

You are not giving us much to go on... ;-)

Where would this file be located (hard drive, embedded in Word doc...)? Is
this just for you on yourmachine or would you need to distribute this to
other users? You mean when a particular document is opened, or any document?
Word version?

Generally, for a specific document, in the ThisDocument module, use this sub:


Private Sub Document_Open()

Dim OpenSound As Object

OpenSound = Shell("Path to application\Sound file")

End Sub
 

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

Top