Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2
Default Error "52" bad file number or file name problem

I am having trouble with an application which calles Excel
with the Shell command.

"C:\Program Files\Microsoft Office 2000
\Office\Excel.Exe" "MyFile.csv" "File2.xls" /e

The second file build a new workbook using some macros. It
opens excel and runs fine on Machine A and not on Machine
B. Machine A is the dev box and on both A and B the Excel
versions match, the dll's match for ODBC, OLE DB, and
Excel. If I past the string above into the run box it will
run fine, but when called from the program on Machine B it
gives the excel error 52. Any thoughts?
  #2   Report Post  
Posted to microsoft.public.excel.programming
jaf jaf is offline
external usenet poster
 
Posts: 300
Default Error "52" bad file number or file name problem

Hi Ryan,
Your not passing a path with the filenames. Are the paths to the files the
same on both machines?

--

John

johnf202 at hotmail dot com


"Ryan Stechschulte" wrote in message
...
I am having trouble with an application which calles Excel
with the Shell command.

"C:\Program Files\Microsoft Office 2000
\Office\Excel.Exe" "MyFile.csv" "File2.xls" /e

The second file build a new workbook using some macros. It
opens excel and runs fine on Machine A and not on Machine
B. Machine A is the dev box and on both A and B the Excel
versions match, the dll's match for ODBC, OLE DB, and
Excel. If I past the string above into the run box it will
run fine, but when called from the program on Machine B it
gives the excel error 52. Any thoughts?



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2
Default Error "52" bad file number or file name problem

Sorry forgot to mention that I am putting a path with the
files myFile and File2. They are the same on both machines.


-----Original Message-----
I am having trouble with an application which calles

Excel
with the Shell command.

"C:\Program Files\Microsoft Office 2000
\Office\Excel.Exe" "MyFile.csv" "File2.xls" /e

The second file build a new workbook using some macros.

It
opens excel and runs fine on Machine A and not on Machine
B. Machine A is the dev box and on both A and B the Excel
versions match, the dll's match for ODBC, OLE DB, and
Excel. If I past the string above into the run box it

will
run fine, but when called from the program on Machine B

it
gives the excel error 52. Any thoughts?
.

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
"File Error: Data May Be Lost" when file saved on Mac is opened inWindows Игорь Excel Discussion (Misc queries) 0 December 28th 09 03:32 PM
"Too Many Cell Formats" Error when opening a 2007 XLS file in 2003 James Excel Discussion (Misc queries) 0 November 3rd 09 02:14 AM
Unable to open a 82 KB XLSM file due to "Too many different cellformats" & "Converter failed to open the file." errors. Phillip Pi Excel Discussion (Misc queries) 0 April 23rd 09 08:53 PM
Unable to open a 82 KB XLSM file due to "Too many different cellformats" & "Converter failed to open the file." errors. Phillip Pi Setting up and Configuration of Excel 0 April 23rd 09 08:53 PM
Excel 2003 "file error: data may have been lost" after applying SP3 [email protected] Excel Discussion (Misc queries) 2 November 28th 07 10:02 PM


All times are GMT +1. The time now is 02:00 PM.

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"