Might help if I ask the right question:
I have the following code that opens IE, runs a .php file, then closes IE. The question I have is how can I tell if the .php file runs completely before it is closed?
I my case the open, run, close is so fast I can not tell if it actually ran and I do not want to build in anything that will stop the macro to show me it actually is running.
Sub Button1_Click()
Dim IeApp As InternetExplorer
Dim strURL As String
Dim IeDoc As Object
Dim i As Long
Set IeApp = New InternetExplorer
IeApp.Visible = True
strURL = "myURL/time.php"
IeApp.Navigate strURL
Do
Loop Until IeApp.ReadyState = READYSTATE_COMPLETE
Set IeDoc = IeApp.Document
IeApp.Quit
End Sub