set MyIE = CreateObject("InternetExplorer.Application")
WScript.ConnectObject MyIE, "PHGIE_"
Although the Windows Script 2.0 documentation has
identical syntax, this throws the folloe=wing error
message:
"Could not connect object
Code: 80020009"
All help is welcome!
set MyIE = WScript.CreateObject("InternetExplorer.Application","PHGIE_")
As for ConnectObject, there was a disclaimer in the Remarks section of the old documentation that
seems to have been removed in the new docs. It said something to the effect that ConnectObject only
works with an object that can enumerate its outgoing interface on request (and IE is not one of
those)...
The issue Joe mentioned (no IE entry in the ROT - Running Object Table) has to do with using
set myIE = GetObject(,"InternetExplorer.Application")
syntax to get a reference to an existing instance (which does not work with IE)...
--
Michael Harris
Microsoft.MVP.Scripting
--
mik...@mvps.org
Please do not email questions - post them to the newsgroup instead.
--
"Brian Kearney" <bkea...@empirix.com> wrote in message
news:3f0001c14754$5f3c5920$9ae62ecf@tkmsftngxa02...