Skip to content

Instantly share code, notes, and snippets.

@kumatti1
Created May 5, 2013 22:18
Show Gist options
  • Save kumatti1/166c2d72dc386b5f9f17 to your computer and use it in GitHub Desktop.
Save kumatti1/166c2d72dc386b5f9f17 to your computer and use it in GitHub Desktop.
Dim TimeOut As Date
Dim flg As Boolean
flg = False
TimeOut = Now + TimeSerial(0, 0, 10)
Do While ie.busy
DoEvents
Sleep 100
If Now > TimeOut Then
flg = True
Exit Do
End If
Loop
If flg Then
ie.stop
ie.Refresh
End If
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment