One method:
Bookmark the midi object (in the example below, I bookmarked it using the
name "midi"). Then create an AutoOpen macro, which you save in that document
(rather than in normal.dot). The AutoOpen macro might look like the
following:
Sub AutoOpen()
'
' AutoOpen Macro
' Macro recorded November 30, 1999 by Herb Tyson
'
Selection.GoTo What:=wdGoToBookmark, Name:="midi"
Selection.InlineShapes(1).OLEFormat.DoVerb VerbIndex:=wdOLEVerbPrimary
End Sub
Note: you might have some macro security issues. Here, I solved them by
installing SelfSert, which comes with Office, and digitally signed the VBA
project using my own signature. However, if you plan to give this document
to someone else, you likely will need to deal with this issue at some level.
The VBA newsgroups are a good place to pursue this if it's a problem.
--
Herb Tyson MS MVP
Please respond in the newsgroups so everyone can follow along.
http://www.herbtyson.com
How does one play an embedded sequence object (a midi file) automatically
when the document is opened?
TIA, AlanN