Hi All,
I am having trouble getting this to work. I am close, but probably missing something. I am trying to play a wav file when the active cell is U18. When the user selects this cell, I want the audio file to play. When I use the code below, it works when I have the cell selected and run the macro but I do not want to have to run the macro. I'd like to it run automatically whenever the cell is selected.
Thank you!
I am having trouble getting this to work. I am close, but probably missing something. I am trying to play a wav file when the active cell is U18. When the user selects this cell, I want the audio file to play. When I use the code below, it works when I have the cell selected and run the macro but I do not want to have to run the macro. I'd like to it run automatically whenever the cell is selected.
Code:
Sub play_audio()
If ActiveCell = Range("U18") Then
ActiveSheet.Shapes("Object 39").Select
Selection.Verb Verb:=xlPrimary
End If
End Sub
Thank you!