This code works great in the IDE but crashes every time on the last line when made into an exe and run on the same machine. Any idea why?
PageFinished = False
Cancelling = False
OKToUnload = False
WebBrowser.Navigate ("https://www.example.com/index.jsp")
Do While PageFinished = False 'set to true in document complete event
DoEvents
If Cancelling = True Then
OKToUnload = True
GoTo Endline
End If
Loop
PageFinished = False
WebBrowser.Document.All("UserId").Value = txtNumber.Text 'error here