Excel: SOUND.PLAY() Ignored in Auto_Open MacroID: Q90786
|
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.
If Microsoft Excel is already open when the specified Auto_Open
routine is executed, the function behaves normally.
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 and a document will be started simultaneously when you
have saved the document to the Excel Startup Folder (4) (if you are
using Microsoft Excel for the Macintosh) or the XLSTART directory (if
you are using Microsoft Excel for Windows). Both documents will also
be started simultaneously when you open a document from the Finder (if
you are using Microsoft Excel for the Macintosh), or from Program
Manager or File Manager (if you are using Microsoft Excel for
Windows); in all of these cases, if Microsoft Excel is not already
running in the background, it will be started along with the document.
A1: Auto_Open
A2: =ON.TIME(NOW(),"PlaySounds")
A3: =RETURN()
A4:
A5: PlaySounds
A6: =SOUND.PLAY(B1)
A7: =RETURN()
A1: Auto_Open
A2: =ON.TIME(NOW(),"PlaySounds")
A3: =RETURN()
A4:
A5: PlaySounds
A6: =SOUND.PLAY(,"C:\SOUNDS\SOUND.WAV")
A7: =RETURN()
"Function Reference," version 4.0, pages 305-306, 415-416
Additional query words: 4.00a
Keywords :
Version :
Platform :
Issue type :
Last Reviewed: March 29, 1999