Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.programming
|
|||
|
|||
Excel 2007 Shell Command Runtime Error HELP
In Excel 2003, this code worked fine
Private Sub CommandButton1_Click() Worksheets("Player").Activate Range("B4").Select PlayFile = Shell( _ "C:\Program Files\Windows Media Player\wmplayer.exe ""E:\" & ActiveCell.Value & """", 1) Worksheets("Player").Range("A4:C4").Delete Shift:=xlShiftUp End Sub In Excel 2007, Windows Media Player opens, but I get a Microsoft Visual C++ Runtime Library error. Runtime Error! Program: C:\Program Files\Windows Media Player\wmplayer.exe This application has requested the Runtime to terminate it in an unusual way. Please contact the application's support team for more information. Can anyone explain to me why? Thanks in advance |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
AppActivate runtime error 5 when used with shell cmd | Excel Programming | |||
The Differences in the Shell Command in Excel 2003 and 2007 | Excel Programming | |||
Runtime error using Cell.Find command | Excel Programming | |||
shape runtime error 438 excel 2007 | Excel Programming | |||
runtime error r6025 on Excel 2007 | Excel Discussion (Misc queries) |