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: 2
Default workbook.open throws 1004 error

Here is the entire application which generates the error:

Sub bob2()
Dim owb As Workbook
Set owb = Workbooks.Open("C:\temp\test-import-data.xls")
End Sub

Can't get much more stripped down than that. I can open
test-import-data.xml just fine in Excel but when I execute this functon
I get 1004 "Application-defined or object-defined error". The file is
created via an output from Siebel. But it is in Excel format. We are
using Excel 2003.

Any ideas?

If I open up the excel document it will automatically close it when I
call the open and still throw the errors.

 
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
error 1004 Method SaveAs of Workbook failed Maury Markowitz Excel Programming 2 October 25th 05 08:45 PM
shared workbook runtime error 1004 Nigel[_10_] Excel Programming 10 August 2nd 05 07:09 PM
Unexpected error 1004 when using workbooks.open AHD Excel Programming 5 June 6th 05 11:19 PM
Excel 2003 Workbooks.Open with CorruptLoad=xlRepairFile fails on Excel 5.0/95 file due to Chart, with Error 1004 Method 'Open' of object 'Workbooks' failed Frank Jones Excel Programming 2 June 15th 04 03:21 AM
Error 1004 when I open a file Deer Hunter Excel Programming 3 August 27th 03 05:33 PM


All times are GMT +1. The time now is 01:31 PM.

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

About Us

"It's about Microsoft Excel"