Thank you Tore
It's much faster the way you said.
And I've been using it the wrong way for years :)
Moises
>Instead of using createobject() inside the Scan - Endscan structure, I suggest that you use it before the structure. In other words, use the same instance every time.
>
>>Hi
>>
>>I am using createobject() inside SCAN / ENDSCAN structure on a table to track objects in mail post website.
>>
>>It works fine but sometimes createobject return error message and then program stops and I have to execute it again.
>>
>>How can I use “try” or “on error” commands to test the command below
>>and execute it over and over until no errors exist ?
>>
>>
>>loIE = CREATEOBJECT("InternetExplorer.Application")
>>
>>
>>Moises