i have a script (functions with virtual earth) in an html file.
i load the html page in a webbrowser and i wnat to execute those script
functions.
code:
Dim doc As IHTMLDocument2
doc = WebBrowser1.Document
Dim location As String
location = "66424 , DE"
doc.parentWindow.execScript "map.FindLocation(" & location & ")",
"JavaScript"
but , at the 2nd line i receive an error:
"Object variable or With block variable not set"
i have tried all IHTMLDocument1, 2 3 4 5 , same error.
can anyone please help me
thank you