Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Automation Error

While running VBA code on the .open event I get the
following error: Automation Error the specified procedure
could not be found. -Z147024769. Can you let me know
what causes this.
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 16
Default Automation Error

Suggest you post a chunk of the code - indicating which line it is failing on
  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Automation Error (with code)

So, for one user, the code fails on the open method for
the connection object (.Open line below), but for a
different user, it works just fine. Both users have the
XP operating system and Office 2002. Both users have the
same version of MDAC (2.7) and the same references checked
(Microsoft ActiveX Data Objects 2.7 Library, Microsoft
Forms 2.0 Object Library, Microsoft Office 10.0 Object
Library, OLE Automation, Microsoft Excel 10.0 Object
Library and Visual Basic for Applications). Any ideas for
me?

Dim cn As ADODB.Connection
Set cn = New ADODB.Connection
With cn
.Provider = "Microsoft.Jet.OLEDB.4.0"
.ConnectionString = sName & _
"Extended Properties=Excel 8.0;"
.Open
End With

-----Original Message-----
Suggest you post a chunk of the code - indicating which

line it is failing on
.

  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 459
Default Automation Error (with code)

What is the contents of the variable sName? It could be crucial. For
example, is the workbook on a nwtwork share, is it using a drive
letter that isn't mapped to the same UCN as the other machines, ...?

--

"Tiffany A. Keane" wrote in message ...
So, for one user, the code fails on the open method for
the connection object (.Open line below), but for a
different user, it works just fine. Both users have the
XP operating system and Office 2002. Both users have the
same version of MDAC (2.7) and the same references checked
(Microsoft ActiveX Data Objects 2.7 Library, Microsoft
Forms 2.0 Object Library, Microsoft Office 10.0 Object
Library, OLE Automation, Microsoft Excel 10.0 Object
Library and Visual Basic for Applications). Any ideas for
me?

Dim cn As ADODB.Connection
Set cn = New ADODB.Connection
With cn
.Provider = "Microsoft.Jet.OLEDB.4.0"
.ConnectionString = sName & _
"Extended Properties=Excel 8.0;"
.Open
End With

-----Original Message-----
Suggest you post a chunk of the code - indicating which

line it is failing on
.

  #5   Report Post  
Posted to microsoft.public.excel.programming
No Name
 
Posts: n/a
Default Automation Error (with code)

sname is "Data Source=" and a path and filename. The path
is the same as the path for the open workbook (which calls
this code) which is the user's local C:\ drive. The file
name is "United States.xls". Does anything look funky?

-----Original Message-----
What is the contents of the variable sName? It could be

crucial. For
example, is the workbook on a nwtwork share, is it using

a drive
letter that isn't mapped to the same UCN as the other

machines, ...?

--

"Tiffany A. Keane"

wrote in message news:<153ca01c41cfa$99cb8470
...
So, for one user, the code fails on the open method for
the connection object (.Open line below), but for a
different user, it works just fine. Both users have

the
XP operating system and Office 2002. Both users have

the
same version of MDAC (2.7) and the same references

checked
(Microsoft ActiveX Data Objects 2.7 Library, Microsoft
Forms 2.0 Object Library, Microsoft Office 10.0 Object
Library, OLE Automation, Microsoft Excel 10.0 Object
Library and Visual Basic for Applications). Any ideas

for
me?

Dim cn As ADODB.Connection
Set cn = New ADODB.Connection
With cn
.Provider = "Microsoft.Jet.OLEDB.4.0"
.ConnectionString = sName & _
"Extended Properties=Excel 8.0;"
.Open
End With

-----Original Message-----
Suggest you post a chunk of the code - indicating

which
line it is failing on
.

.



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
Automation Error xlEnt Excel Discussion (Misc queries) 2 May 15th 06 11:37 PM
Automation Error Bob Barnes Charts and Charting in Excel 3 November 7th 05 08:37 PM
Automation error in win 98 kehul Excel Programming 1 January 10th 04 07:47 PM
automation error -2147467259 Tim Cadieux[_2_] Excel Programming 0 November 5th 03 05:01 PM
Unknown where is the problem on the Runtime error - Automation error wellie Excel Programming 1 July 10th 03 08:12 AM


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