Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27
Default 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

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
AppActivate runtime error 5 when used with shell cmd Raymond Zeitler Excel Programming 2 December 11th 10 03:37 PM
The Differences in the Shell Command in Excel 2003 and 2007 Philosophaie Excel Programming 1 July 9th 08 01:45 PM
Runtime error using Cell.Find command EllenM Excel Programming 5 May 18th 07 07:36 PM
shape runtime error 438 excel 2007 wolmFromAustria Excel Programming 2 December 10th 06 02:32 PM
runtime error r6025 on Excel 2007 partch Excel Discussion (Misc queries) 1 December 7th 06 04:08 PM


All times are GMT +1. The time now is 11:48 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"