I have used the example from "http://www.mrexcel.com/tip007.shtml" that shows how to start a midi/sound file. This works fine. What I want to do is similar to what happens with web pages, in that when the page is left the midi file is stopped (before it would normally finish). While on the page (sheet) if I press "ESC" it will stop, but when I try to use VBA code and the "send keys" command.....
Sub StopIt()
Application.Goto Range("A2")
Range("A1").Select
SendKeys ("{ESC}")
Application.SendKeys ("{ESCape}")
End Sub
.....it will go to the cell selected but ignores the "ESC" command. The sub "StopIt" would be executed when they click on a button to return them to the "home sheet" (menu).
Any help on this out there?
Sub StopIt()
Application.Goto Range("A2")
Range("A1").Select
SendKeys ("{ESC}")
Application.SendKeys ("{ESCape}")
End Sub
.....it will go to the cell selected but ignores the "ESC" command. The sub "StopIt" would be executed when they click on a button to return them to the "home sheet" (menu).
Any help on this out there?