I get a "type mismatch" error when executing the following (simplyfied) VB6 code in W7 64-bit:
Dim ele As IHTMLElement, pCR As IHTMLControlRange
Set pCR = ie.document.body.createControlRange()
Call pCR.Add(ele)
Running under W7 32-bit or Windows XP the program runs perfect end gives no error.
If I dimension the pCR variable to "Object", the program accepts the createControlRange, but gives an error 483: "object doesnt support this property or method".
Is there any solution or bypass for this problem?
Dim ele As IHTMLElement, pCR As IHTMLControlRange
Set pCR = ie.document.body.createControlRange()
Call pCR.Add(ele)
Running under W7 32-bit or Windows XP the program runs perfect end gives no error.
If I dimension the pCR variable to "Object", the program accepts the createControlRange, but gives an error 483: "object doesnt support this property or method".
Is there any solution or bypass for this problem?