LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
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


 
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
Test fileOpen Luis Excel Programming 1 August 5th 04 02:04 AM
Macro to run on fileopen for all workbooks aarti Excel Programming 1 May 21st 04 01:37 PM
Using FileOpen Tippy Excel Programming 1 March 4th 04 06:55 PM
Selecting a file path in Excel VBA using FileOpen dialog John Robinson Excel Programming 1 November 1st 03 09:59 AM


All times are GMT +1. The time now is 02:10 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"