The information in this article applies to:
SUMMARYIn Microsoft Excel 98 Macintosh Edition, there is no equivalent for the Excel 4.0 macro function Sound.Play(). MORE INFORMATION
If you want to play a sound using a Visual Basic for Applications macro,
use the ExecuteExcel4Macro method to run the Sound.Play() function.
http://www.microsoft.com/support/supportnet/overview/overview.aspThe following sample macro assumes you have a sound file named Clear on a hard drive named Macintosh HD. If your hard drive is named differently, substitute the name of your hard drive in the macro.
Note the use of double quotation marks in this macro. These quotation
marks are necessary because the path to the sound file is a string, which
is included inside the outer string.
REFERENCES
For more information about the ExecuteExcel4Macro Method, from the Visual
Basic Editor, click the Office Assistant, type executeexcel4macro, click
Search, and then click to view "ExecuteExcel4Macro Method."
Q176476 OFF: Office Assistant Not Answering Visual Basic Questions Additional query words: XL98
Keywords : kbdta xlvbahowto xlminfo |
Last Reviewed: February 1, 2000 © 2000 Microsoft Corporation. All rights reserved. Terms of Use. |