Home |
Search |
Today's Posts |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
"CanonChris" wrote:
Can somebody tell me how to end a Windows MediaPlayer session in Excel VBA. I have used the Shell code to open it. Thank you in advance for your reaction. If you don't get a better answer try this. It uses Taskkill command to kill the wmplayer.exe process. Sub KillWMPlayer() Shell """C:\Program Files\Windows Media Player\wmplayer.exe"" /prefetch:1", vbNormalFocus Application.Wait Now + TimeValue("0:00:05") Shell "CMD /C TASKKILL /IM wmplayer.exe" End Sub HTH -- urkec |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Can I stop the close method in an auto close macro | Excel Programming | |||
In Before Close Sub ActiveWorkBook.Close(False) repeat procedure | Excel Programming | |||
Excel shoud not close all active books when clicking close button | Excel Discussion (Misc queries) | |||
Shell can open an application, can it close an app too? | Excel Programming | |||
excel - Windows close button (x) should only close active workboo. | Setting up and Configuration of Excel |