Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Opening of an excel file is also giving a run time error

Trying to make use of Excel 97/2000 programming for
reading data from excel to SQL Database

The programs was working fine for a long time 20 + months.
But suddenly failing on running the program in Visual
Basic even a simple creation of excel object & opening a
file is also giving an error

Code
Set oExcelApp =CreateObject("Excel.Application")

Set oExcelWorkbook = oExcelApp.Workbooks.Open(sFilename)
'sfilename includes the file name & path
' the error that is displayed is

run-time error '-2147022979 (8007077d)':

Method 'Open' of object workbooks failed

Try to make the excel visible also gives error

oExcelApp.Visible = True

run-time error '-2146960888 (8007fa08)':

Method 'Visible' of object '_Application' failed


Thanks
Prem
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Opening of an excel file is also giving a run time error

"prem" wrote in message ...
Trying to make use of Excel 97/2000 programming for
reading data from excel to SQL Database

The programs was working fine for a long time 20 + months.
But suddenly failing on running the program in Visual
Basic even a simple creation of excel object & opening a
file is also giving an error

Wonderfull! I found that it's a Microsoft Patch that make's this
happen, it's SP4, so uninstall it and everything should work nice
again, or install Excel service release SR-1 and it should solve it.
God bless Bill Gates.
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
Resolve Error in opening Excel File zip file from a CD? rw5400 Excel Discussion (Misc queries) 1 March 17th 10 03:41 PM
Excel file opening error Dan[_11_] Excel Discussion (Misc queries) 1 August 29th 09 04:14 PM
Error when opening an excel file efronk Excel Discussion (Misc queries) 1 March 14th 08 02:03 AM
"Unable to read file" error message when opening a Excel file that contains a PivotTable report. Tim Marsden Charts and Charting in Excel 2 October 15th 05 02:10 PM
error opening excel file jp Excel Worksheet Functions 0 February 16th 05 09:06 AM


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