VB5 Excel component hangs when processing large amounts of data

C

Christine

I am encountering a problem whenever I am importing or
exporting data to or from EXCEL 97 from Visual Basic 5
(via VBA code), especially when it involves more than 1000
records; it does not release the EXCEL instance from the
task manager. I don't see the EXCEL instance if there are
fewer records. How should I fix this problem? It is
causing the application to hang.

Thanks for any help!
 
S

smalltalk_vb

Make sure you use the Quit method and set the object to
nothing when you finsh running the procedure.

....
objExcel.Quit
Set ObjExcel = Nothing
End Sub
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top