You must wait until the last action has ended. you can do this by entering the following code:

While Inet1.StillExecuting
Doevents
Wend

After you put this code, put the procedure of what you want to do. This will wait until Inet ends the requested action, and then will contiune with the next action.

I hope this helps!