I am using Webbrowser to get web pages:
Private Sub WB_DocumentComplete(ByVal pDisp As Object, URL As Variant)
txtHTML.Text = WB.Document.Body.innerHTML ' <- Err
txtURL.Text = WB.LocationURL
End Sub
Each time I run the program I get Error 91,
Object variable or With block variable not set.
I click 'Debug', move my cursor to the line marked Err above,
change any letter on that line to upper case, then
click the Start button in the IDE, and Voila!! - the program runs correctly!!
It does this every time I run the program.
Anyone have a clue about what's causing this?
Do I need to change the coolant in my radiator?
Private Sub WB_DocumentComplete(ByVal pDisp As Object, URL As Variant)
txtHTML.Text = WB.Document.Body.innerHTML ' <- Err
txtURL.Text = WB.LocationURL
End Sub
Each time I run the program I get Error 91,
Object variable or With block variable not set.
I click 'Debug', move my cursor to the line marked Err above,
change any letter on that line to upper case, then
click the Start button in the IDE, and Voila!! - the program runs correctly!!
It does this every time I run the program.
Anyone have a clue about what's causing this?
Do I need to change the coolant in my radiator?