Applies To
SoundNote Object.
Description
Imports a sound note from a file.
Syntax
object.Import(file, resource)
object
Required. The SoundNote object.
file
Required. The name of the file containing sounds.
resource
Required for the Apple Macintosh (not used with Microsoft Windows). The name or number of the sound resource in the file to import.
See Also
Play Method, Record Method.
Example
This example adds a sound note to cell A1 on Sheet1.
Worksheets("Sheet1").Range("A1").SoundNote.Import "C:\SOUNDS\CHIMES.WAV"
This is the same example in Microsoft Excel for the Macintosh.
Worksheets("Sheet1").Range("A1").SoundNote.Import "HD:Sounds:Sound Note 1"