Excel_newbie_85
New Member
- Joined
- Nov 30, 2011
- Messages
- 20
A very cold hello as its -16 centigrade here and thought I should start working on my new project.
I have been searching through vba sites for a simple code input that enables me to have a macro play and audio file.
Now, I understand it may need to be saved as a wav file but cannot get anything to open.
Details to consider:
Macro is activated then, application is opened, file played, application closes
audio format is .wav (but could be mp3 or wmp)
I am using WMP to play file (but can change to another)
So, with that in mind, does anyone know the criteria for the code?
example code (obviously its not real code, just explanitary code)
Run macro playfile()
open.wmp.play."c: blah blah blah .wav"
close application
end
Cheers
I have been searching through vba sites for a simple code input that enables me to have a macro play and audio file.
Now, I understand it may need to be saved as a wav file but cannot get anything to open.
Details to consider:
Macro is activated then, application is opened, file played, application closes
audio format is .wav (but could be mp3 or wmp)
I am using WMP to play file (but can change to another)
So, with that in mind, does anyone know the criteria for the code?
example code (obviously its not real code, just explanitary code)
Run macro playfile()
open.wmp.play."c: blah blah blah .wav"
close application
end
Cheers