Thread: fileopen
View Single Post
  #1   Report Post  
Posted to microsoft.public.excel.programming
A-DESIGN A-DESIGN is offline
external usenet poster
 
Posts: 40
Default fileopen

Hi,
Can anyone please tell me why this code is working:

fileopen = Shell("C:\Program Files\EC55\ec55.exe " & "c:\04987.ecw", 4)

and this code is not:

dim directory as string
directory = "c:\04987.ecw"
fileopen = Shell("C:\Program Files\EC55\ec55.exe " & "directory", 4)

They both open the application, the first one open the file also, but the
second one doesn't.

Thanks,
Afshin