How can I play an embedded wave file in Word 2003 using VBA?

D

Dustin

I'm trying to make a document with embedded wave audio to get feedback on the
sounds. Unfortunately I cant seem to find out how, in Word, to get the
object name for an embedded ojbect. It's easy in PowerPoint, but I catn find
anything similar in Word. Help! :)
 
W

Word Heretic

G'day Dustin <[email protected]>,

Embedded objects are usually Shapes or InlineShapes.

Steve Hudson - Word Heretic

steve from wordheretic.com (Email replies require payment)
Without prejudice


Dustin reckoned:
 
D

Dustin

Sorry, WordHeretic, that really doesn't appear to be of much assistance to
me...could you explain some more detail?
 
M

Michael Bednarek

I'm trying to make a document with embedded wave audio to get feedback on the
sounds. Unfortunately I cant seem to find out how, in Word, to get the
object name for an embedded ojbect. It's easy in PowerPoint, but I catn find
anything similar in Word. Help! :)

Once you know the index of the object within the collection of
InlineShapes, try this:

Selection.InlineShapes(n).OLEFormat.DoVerb VerbIndex:=wdOLEVerbPrimary
 

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