ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   intermittent error - ActiveX component can't create object (https://www.excelbanter.com/excel-programming/319834-intermittent-error-activex-component-cant-create-object.html)

Naveen

intermittent error - ActiveX component can't create object
 
Hello

I have a VB 6 routine that does a lot of iterations. In each of the
iteration there is Excel manipulation.

Since MS Excel is extremely temperamental I create and destroy all Excel
objects in the correct order within each iteration.

The problem I face is that after about 50 iterations or sometimes a 100,
Excel object creation suddenly fails with the above error.

Any ideas why this would happen.

Thanks
Naveen

Tom Ogilvy

intermittent error - ActiveX component can't create object
 
Look in the task manager an make sure you are actually releasing those
instances of Excel. I suspect you are not.

--
Regards,
Tom Ogilvy

"Naveen" wrote in message
...
Hello

I have a VB 6 routine that does a lot of iterations. In each of the
iteration there is Excel manipulation.

Since MS Excel is extremely temperamental I create and destroy all Excel
objects in the correct order within each iteration.

The problem I face is that after about 50 iterations or sometimes a 100,
Excel object creation suddenly fails with the above error.

Any ideas why this would happen.

Thanks
Naveen





All times are GMT +1. The time now is 09:13 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
ExcelBanter.com