Bob Morrison
New Member
- Joined
- Dec 11, 2009
- Messages
- 31
In XL 2010 is it possible to have a picture in a Cell and it plays an Audio file if you click on it?
' sheet module
Public Declare Function ShellExecute Lib "shell32.dll" _
Alias "ShellExecuteA" (ByVal hwnd As Long, _
ByVal lpOperation As String, ByVal lpFile As String, _
ByVal lpParameters As String, ByVal lpDirectory As String, _
ByVal nShowCmd As Long) As Long
Sub OpenPlay()
Dim fp$, lngErr&
fp = "C:\Users\pc\Desktop\Rex's Stuff\Chair.wma"
lngErr = ShellExecute(0, "OPEN", fp, "", "", 0)
End Sub