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: 7
Default Method ~ of Object ~ Failed.

Excel 97 is being called by a VB program. The behavior is
this:

Excel opens fine on it's own (from the desktop). But all
of a sudden, on the PC in question, any piece of 'code'
from VB (or event using VBA in MSWord or Access) crashes
with the Error above on the 2nd line of code below:
' Create new hidden instance of Excel.
Set xlApp = New Excel.Application

' Add new workbook to Workbooks collection.
Set wkbNewBook = xlApp.Workbooks.Add

I've read thru all the KB articles and none seem to apply.

The only way to restore the functionality on the PC is to
completely unInstall MSExcel, manually removing all the
files associated with it, and then reinstalling. After the
reinstall of MSExcel the programs all work fine. It
appears that some dll or file is corrupting?

I've tried first just making sure that the MDAC library
was correct, to avoid the uninstall process, and it was
the correct version of MDAC.

It's weird. We have dozens of PCs running the VB
application. And this situation has come up 3 times in the
past few weeks.

Anybody have a clue?

thanks
Joan
 
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
Method Add of object Validation Failed - please help Shokie New Users to Excel 1 July 10th 09 01:34 PM
Method Add of object Validation Failed - please help Shokie Excel Worksheet Functions 1 July 10th 09 01:33 PM
Method 'Range' of object '_global' failed higherlimits Excel Discussion (Misc queries) 3 June 23rd 06 06:16 PM
Method 'Add' of object 'CommandBarControls' failed LAF Excel Discussion (Misc queries) 0 September 12th 05 02:02 PM


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