Run-Time Error '429': ActiveX component can't create object 
Author Message
 Run-Time Error '429': ActiveX component can't create object

I have the following problem with microsoft Visual studio or Office 2000

I write the following program in Visual Basic 6.0, try to auto run a
macro which resides in excel 2000. However,
it runs OK when excel 2000 is Open. When excel is closed, it will give
an error: Run-Time Error '429': ActiveX
component can't create object.

I try to uninstall or reinstall office 2000, it does not solve the
problem. I suspect something is missing in my
windows 2000(However, I just resintall windows 2000 and everything seems
fine), or something is wrong with the
activeX server. Could anyone have any idea what is wrong with that?

Thanks in advance.

Sub main()
Dim myXL As Object
Dim sht

Set sht = CreateObject("Excel.Sheet")
Set sht = GetObject("R:\website\w3website\arb20\chart.xls")
sht.Application.Visible = True
sht.Parent.Windows(1).Visible = True
sht.Application.Run "arb20graph"

'Set myXL = GetObject("R:\website\w3website\arb20\chart.xls")
'myXL.Application.Visible = True
'myXL.Parent.Windows(1).Visible = True

'myXL.Application.run "arb20graph"

End Sub

Sent via Deja.com http://www.*-*-*.com/
Before you buy.



Tue, 14 Jan 2003 03:00:00 GMT  
 Run-Time Error '429': ActiveX component can't create object
This error means that your vb project is using a DLL thats not
registered.
you would have to run the dll through regsvr32 to register it.


Quote:

> I have the following problem with microsoft Visual studio or Office
2000

> I write the following program in visual basic 6.0, try to auto run a
> macro which resides in excel 2000. However,
> it runs OK when excel 2000 is Open. When excel is closed, it will give
> an error: Run-Time Error '429': ActiveX
> component can't create object.

> I try to uninstall or reinstall office 2000, it does not solve the
> problem. I suspect something is missing in my
> windows 2000(However, I just resintall windows 2000 and everything
seems
> fine), or something is wrong with the
> activeX server. Could anyone have any idea what is wrong with that?

> Thanks in advance.

> Sub main()
> Dim myXL As Object
> Dim sht

> Set sht = CreateObject("Excel.Sheet")
> Set sht = GetObject("R:\website\w3website\arb20\chart.xls")
> sht.Application.Visible = True
> sht.Parent.Windows(1).Visible = True
> sht.Application.Run "arb20graph"

> 'Set myXL = GetObject("R:\website\w3website\arb20\chart.xls")
> 'myXL.Application.Visible = True
> 'myXL.Parent.Windows(1).Visible = True

> 'myXL.Application.run "arb20graph"

> End Sub

> Sent via Deja.com http://www.deja.com/
> Before you buy.

--
thanks
michael

Sent via Deja.com http://www.deja.com/
Before you buy.



Tue, 14 Jan 2003 03:00:00 GMT  
 
 [ 2 post ] 

 Relevant Pages 

1. Run-time error '429': ActiveX component can't create object

2. Run-Time Error '429': ActiveX component can't create object

3. Run time error '429': ActiveX component can't create object

4. Run-time error '429': ActiveX component can't create object

5. Run time error '429': ActiveX component can't create object

6. Run-time error 429 ActiveX component can't create object

7. Run time error 429 ActiveX Component can't create object

8. Run time error 429: Activex component can't create object

9. Runtime error '429', ActiveX can't create object

10. Run Time Error 429: Active-X component can't create object

11. Run-time Error 429 (ActiveX can't create object)

12. ActiveX component can't create object or return reference to this object (Error 429)

 

 
Powered by phpBB® Forum Software