Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Method "Method 'Open' of object 'Workbooks' failed

In case someone else has this problem:

I had an Office 2003 application (Access-based) which automated Excel.
When the upgrade to Office 2007 was pushed, I got an error with
"Method "Method 'Open' of object 'Workbooks' failed" when running the
automation within a module, or "The server threw an exception" when
run from the debug window.

After much angst, troubleshooting, and google searching, it turns out
that it was the ApproveIt add-in for Excel... apparently doesn't play
well with being automated in 2007 (although I could open directly or
shell, couldn't automate it).

So, the moral of the story: if you get either of these errors, check
the add-ins. In retrospect it seems obvious, but since it was related
to the push, I was looking at many different things, none of which
were previously functional add-ins.
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Visual Basic, Office 2007 automation errors

I wanted to confirm that the below solution worked for my issues as well, thanks.

I have inherited several visual basic 6 applications, and the organization just upgraded to office 2007, we were getting automation server errors, on the excel sheets the source would halt on .workbooks.open(, the sheet would open but everything would stop after that, I even did a on error resume next and the replaces in the sheet would process but you couldnt save the document. Also at times I would get a visual c++ runtime error on excel.exe.

This was not an easy solution to find, I have been searching high and low for a hint and priustori was the only one I found with it.



priustori wrote:

Method "Method 'Open' of object 'Workbooks' failed
13-Dec-08

In case someone else has this problem:

I had an Office 2003 application (Access-based) which automated Excel.
When the upgrade to Office 2007 was pushed, I got an error with
"Method "Method 'Open' of object 'Workbooks' failed" when running the
automation within a module, or "The server threw an exception" when
run from the debug window.

After much angst, troubleshooting, and google searching, it turns out
that it was the ApproveIt add-in for Excel... apparently doesn't play
well with being automated in 2007 (although I could open directly or
shell, couldn't automate it).

So, the moral of the story: if you get either of these errors, check
the add-ins. In retrospect it seems obvious, but since it was related
to the push, I was looking at many different things, none of which
were previously functional add-ins.

Previous Posts In This Thread:

On Saturday, December 13, 2008 7:34 PM
priustori wrote:

Method "Method 'Open' of object 'Workbooks' failed
In case someone else has this problem:

I had an Office 2003 application (Access-based) which automated Excel.
When the upgrade to Office 2007 was pushed, I got an error with
"Method "Method 'Open' of object 'Workbooks' failed" when running the
automation within a module, or "The server threw an exception" when
run from the debug window.

After much angst, troubleshooting, and google searching, it turns out
that it was the ApproveIt add-in for Excel... apparently doesn't play
well with being automated in 2007 (although I could open directly or
shell, couldn't automate it).

So, the moral of the story: if you get either of these errors, check
the add-ins. In retrospect it seems obvious, but since it was related
to the push, I was looking at many different things, none of which
were previously functional add-ins.


Submitted via EggHeadCafe - Software Developer Portal of Choice
WPF Binding Beyond the Limitation of Name Scopes
http://www.eggheadcafe.com/tutorials...nd-the-li.aspx
  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 226
Default Visual Basic, Office 2007 automation errors

$0.02 in...
When we automate an instance of Excel from a VB6 app, no addins are
loaded. (XLAs nor COMAddins)

The only time you'd get addins is if you hijack the user's running
instance of Excel.

If ApproveIt was already in the Addins collection then all you need to
do is set its Installed property to TRUE.
--

on 6/2/2010, scott delk supposed :
I wanted to confirm that the below solution worked for my issues as well,
thanks.

I have inherited several visual basic 6 applications, and the organization
just upgraded to office 2007, we were getting automation server errors, on
the excel sheets the source would halt on .workbooks.open(, the sheet would
open but everything would stop after that, I even did a on error resume next
and the replaces in the sheet would process but you couldnt save the
document. Also at times I would get a visual c++ runtime error on excel.exe.

This was not an easy solution to find, I have been searching high and low for
a hint and priustori was the only one I found with it.



priustori wrote:

Method "Method 'Open' of object 'Workbooks' failed
13-Dec-08

In case someone else has this problem:

I had an Office 2003 application (Access-based) which automated Excel.
When the upgrade to Office 2007 was pushed, I got an error with
"Method "Method 'Open' of object 'Workbooks' failed" when running the
automation within a module, or "The server threw an exception" when
run from the debug window.

After much angst, troubleshooting, and google searching, it turns out
that it was the ApproveIt add-in for Excel... apparently doesn't play
well with being automated in 2007 (although I could open directly or
shell, couldn't automate it).

So, the moral of the story: if you get either of these errors, check
the add-ins. In retrospect it seems obvious, but since it was related
to the push, I was looking at many different things, none of which
were previously functional add-ins.

Previous Posts In This Thread:

On Saturday, December 13, 2008 7:34 PM
priustori wrote:

Method "Method 'Open' of object 'Workbooks' failed
In case someone else has this problem:

I had an Office 2003 application (Access-based) which automated Excel.
When the upgrade to Office 2007 was pushed, I got an error with
"Method "Method 'Open' of object 'Workbooks' failed" when running the
automation within a module, or "The server threw an exception" when
run from the debug window.

After much angst, troubleshooting, and google searching, it turns out
that it was the ApproveIt add-in for Excel... apparently doesn't play
well with being automated in 2007 (although I could open directly or
shell, couldn't automate it).

So, the moral of the story: if you get either of these errors, check
the add-ins. In retrospect it seems obvious, but since it was related
to the push, I was looking at many different things, none of which
were previously functional add-ins.


Submitted via EggHeadCafe - Software Developer Portal of Choice
WPF Binding Beyond the Limitation of Name Scopes
http://www.eggheadcafe.com/tutorials...nd-the-li.aspx


--
Garry

Free usenet access at http://www.eternal-september.org
ClassicVB Users Regroup! comp.lang.basic.visual.misc


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
More information on Method 'Open' of object 'Workbooks' failed ElectroVik Excel Programming 1 October 20th 06 06:18 AM
method 'open text' of object 'workbooks' failed tina Excel Programming 6 September 20th 05 11:18 AM
Interactive Chart/ "Method Cells of object '_global' failed" Sibilia[_6_] Excel Programming 3 July 1st 05 06:45 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
Open Method of workbooks class failed kiran[_2_] Excel Programming 0 November 6th 03 09:58 PM


All times are GMT +1. The time now is 10:16 AM.

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"