Excel VBA 429 - ActiveX component can't create object

Shahzadt

Board Regular
Joined
Aug 25, 2009
Messages
72
Hi all - I have Excel 32-bit on windows 7 professional 64-bit. I am able to create reference via tool>references to the OTAClient.dll which is provided by quality center 32-bit application but I am getting a run-time error 429. My question is what are the proper steps to take to trouble shoot this error? If anyone has dealt with this or a similar issue could point me the correct direction would be great. following is the peace of code i am trying.
Code:
Sub test()

Dim TDC As TDAPIOLELib.TDConnection
Set TDC = New TDAPIOLELib.TDConnection


TDC.InitConnectionEx ("http://server:port/qcbin")


End Sub

any help is greatly appreciated.
 

Excel Facts

Copy PDF to Excel
Select data in PDF. Paste to Microsoft Word. Copy from Word and paste to Excel.
Which line of code is generating the error, the Set statement or the InitConnectionEx method? That would be the first question.

If it's the Set statement, then there's some sort of issue actually creating the object. You might try using this bit of code instead:

Code:
Set TDC = CreateObject("TDAPIOLELib.TDConnection")

If it's the next statement, then I would try to find some documentation on the OTAClient.dll to see if you're doing it right. Failing at that, try contacting HP for QC support. It may not be a VBA specific issue, but rather one with the use of QC itself.
 
Upvote 0
below is the codeline which is causing the error

Code:
[COLOR=#333333]TDC.InitConnectionEx ("http://server:port/qcbin")[/COLOR]

i will check with hp as well.
 
Upvote 0
spoke with hp found out that the dll wasn't registered and registered it by going to "http://server:port/qcbin/start_a.jsp?common=true" in internet explorer.

Thanks all
 
Upvote 0

Forum statistics

Threads
1,214,787
Messages
6,121,569
Members
449,038
Latest member
Guest1337

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top