I have a piece of code which can read most audio files (including wav, mp3, midi...), but it won\'t work if there are spaces in the path or File name.
so I have to revert
Try:
Public Sub Sound2(ByVal File$) If InStr(1, File, " ") > 0 Then File = """" & File & """" sMusicFile = File ...
This will wrap the path in quotes if there is a space, which is required for some API functions.