Here's how I reuse object refs...
Public oIE As SHDocVw.InternetExplorer
Set oIE = New SHDocVw.InternetExplorer '//create instance
'//use the instance for some processes
Set oIE = Nothing '//destroy the instance
...where each time the object is needed a new instance gets
created/used/destroyed. This usually requires some process to make
repeated calls to the process using the object, and so you may need to
restructure code accordingly.
HTH
--
Garry
Free usenet access at
http://www.eternal-september.org
Classic
VB Users Regroup!
comp.lang.basic.visual.misc
microsoft.public.
vb.general.discussion
---
This email has been checked for viruses by Avast antivirus software.
https://www.avast.com/antivirus