Tracy,
You've to wait for page to load. Something like.
DO WHILE loExplorer.readystate <> 4
ENDDO
You'll have to add some code to exit loop on time out.
>Hi Jamie,
>
>I receive an unspecified OLE error on the following line:
>
>loDoc = loExplorer.Document
>
>Using Windows XP SP1, IE6.0xpsp2
>
>What version of IE are you using where it works?
>
>>Robert
>>I see. Try the following in your program:
>>loExplorer = CreateObject("InternetExplorer.Application")
>>loExplorer.Navigate2("www.whatismyip.org")
>>loDoc = loExplorer.Document
>>MyIp = loDoc.Body.Innertext
>>
>>
>>HTH
>>Jaime
>>
>>>no i want to do a program that will retrieve this ip
--sb--