The information in this article applies to:
SUMMARY
In Microsoft Excel version 4.0, a SOUND.PLAY() macro statement in
an Auto_Open routine that executes while Microsoft Excel is starting
may be ignored or the macro may halt.
MORE INFORMATION
Auto_Open is a name you define on a worksheet or a macro sheet to
refer to a macro that you want to execute each time you open the file.
In any case where Microsoft Excel and the file containing the
Auto_Open defined name are launched simultaneously, a SOUND.PLAY()
statement contained in the executed Auto_Open macro will, under
certain conditions, be ignored in Microsoft Excel for the Macintosh
and will cause the macro to halt in error in Microsoft Excel for
Windows.
Microsoft Excel for the MacintoshIn Microsoft Excel for the Macintosh, the SOUND.PLAY() statement is ignored when the cell_ref argument is used to reference a cell note containing a sound that you want to play. The statement will execute properly if you use the file_text argument to specify a sound folder. Specifying file_text without a resource argument will play the first sound resource in the folder. If you want a specific sound to play, specify the appropriate sound as the resource argument. Note that the resource argument is only valid on the Macintosh.Workarounds - MacintoshThere are 3 possible solutions to this problem in Microsoft Excel for the Macintosh:
Microsoft Excel for WindowsIn Microsoft Excel for Windows, specifying the cell_ref argument in the SOUND.PLAY() statement will work correctly when a sheet and Microsoft Excel are launched simultaneously. If, however, the file_text argument is specified, the macro will halt in error at the cell containing the SOUND.PLAY() statement. Note that the resource argument is not valid in Microsoft Excel for Windows.Workarounds - Windows Operating EnvironmentThere are 3 possible solutions to this problem.
REFERENCES
"Function Reference," version 4.0, pages 305-306, 415-416
Additional query words: 4.00a
Keywords : |
Last Reviewed: March 29, 1999 © 2000 Microsoft Corporation. All rights reserved. Terms of Use. |