Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 391
Default VBA fails with Run-time Error 429 "ActiveX component can't create object"

XL 2007

Source File: MathNet.dll
Output file: MathNet.tlb

Included Classes MathNet.Division and MathNet.Multiplication
Functions DivideBy4(), DivideBy2(), MultiplyBy2(), MultiplyBy4()

After Visual Studio created a Visual Basic DLL (MathNet.dll) and (MathNet.tlb)
In Excel VBA IDE I entered the following code:

Sub TestDLL()

Dim Result As String
Dim MF As MathNET.Division 'Intellisense does display "Division"
Set MF = New MathNET.Division 'Fails w/Run-time Error 429 ActiveX component can't create object
Result = MF.DivideBy4(1234) 'Intellisense does display "DivideBy4"

End Sub

Need help to overcome the ActiveX error

Do I need to add a referrence? If not "Registered" how to do it?

TIA EagleOne


  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 9,101
Default VBA fails with Run-time Error 429 "ActiveX component can't create

You need to add the MathNet.Dll and MathNet.tlb to the VBA references. go to
VBA menu tools - References and select browse. The window will automatically
be set for TLB and DLL file types.



" wrote:

XL 2007

Source File: MathNet.dll
Output file: MathNet.tlb

Included Classes MathNet.Division and MathNet.Multiplication
Functions DivideBy4(), DivideBy2(), MultiplyBy2(), MultiplyBy4()

After Visual Studio created a Visual Basic DLL (MathNet.dll) and (MathNet.tlb)
In Excel VBA IDE I entered the following code:

Sub TestDLL()

Dim Result As String
Dim MF As MathNET.Division 'Intellisense does display "Division"
Set MF = New MathNET.Division 'Fails w/Run-time Error 429 ActiveX component can't create object
Result = MF.DivideBy4(1234) 'Intellisense does display "DivideBy4"

End Sub

Need help to overcome the ActiveX error

Do I need to add a referrence? If not "Registered" how to do it?

TIA EagleOne



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
"Run-time error 429: ActiveX comonent can't create object" MSComm KC Excel Programming 4 November 13th 08 06:43 PM
"ActiveX component can't create object" William wilborn Excel Programming 3 November 9th 06 01:34 AM
Error 429 ActiveX Component can't create object Mike Hartsough Excel Programming 2 September 26th 06 03:00 PM
ActiveX Error 429, "Can't create object" Doc Rock Excel Programming 3 September 9th 06 07:04 PM
error 429: ActiveX component can't create object GerryM Excel Programming 0 October 13th 04 05:53 PM


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