LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,080
Default Button for wave file

Hi:

Declare Function PlaySound Lib "winmm.dll" _
Alias "PlaySoundA" (ByVal lpszName As String, _
ByVal hModule As Long, _
ByVal dwFlags As Long) As Long

Sub PlayMe()
Dim retval As Long
retval = PlaySound("C:\user\Book\chord.wav", 0, &H20000)
End Sub

Regards,

Vasant.

"yo beee" wrote in message
...
Hey all,
Thanks to all programmers who help us newbies out all the time. You

are
invaluable. I'm sure this issue has been here before but here goes.
I need a command button to play a wave file. My wave file is called
"chord.wav" and resides in the following directory: "C:\user\Book" My

Excel
workbook resides in the same directory and is called "MNB.xls" The user

hits
the button and the wave file plays. That's it.
TIA




 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
sine wave trendline Amedee Van Gasse Charts and Charting in Excel 8 April 4th 23 02:15 PM
How can i play a wave file in excel? pj Excel Discussion (Misc queries) 2 November 25th 05 07:36 PM
Chart Animated Sine Wave TEAM Charts and Charting in Excel 1 August 5th 05 10:35 PM
sine wave trendline Amedee Van Gasse Excel Discussion (Misc queries) 10 July 12th 05 04:01 PM
How do I enter a wave sound file into an excel cell? dkimball Excel Discussion (Misc queries) 2 March 28th 05 08:35 PM


All times are GMT +1. The time now is 08:34 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"