mummbles74
Board Regular
- Joined
- Nov 14, 2009
- Messages
- 120
- Office Version
- 365
- Platform
- Windows
I have this code in a piece of code that I use to copy information from a website into my work sheet.
Set IE = CreateObject("InternetExplorer.application")
IE.Visible = True
IE.Navigate2 "extranet.deritend.co.uk/portal/login.php"
Do
If IE.readyState = 4 Then
IE.Visible = False
Exit Do
Else
DoEvents
End If
The web site is sometime un able to load because it is being updated, what I would like to do is for a msgbox or similar to pop up after a certain amount of time if the webpage has not loaded and use this to end the sub.
Any help appreciated, thank you in anticipation
Mummbles74
Set IE = CreateObject("InternetExplorer.application")
IE.Visible = True
IE.Navigate2 "extranet.deritend.co.uk/portal/login.php"
Do
If IE.readyState = 4 Then
IE.Visible = False
Exit Do
Else
DoEvents
End If
The web site is sometime un able to load because it is being updated, what I would like to do is for a msgbox or similar to pop up after a certain amount of time if the webpage has not loaded and use this to end the sub.
Any help appreciated, thank you in anticipation
Mummbles74