Hi;
I am upgrading a VB6 macro in Microsoft Excel. Currently there is a code that
transmits an url through an Internet Explorer object and retrieves the title
of the page. (The url contains a sql query, and the result is printed in the
title.)
The current code for this i at the end of the post.
My problem is that this doesn't work in windows Vista with Outlook 2007. Is
there another way to do this? I am thinking httprequest- httpresponse, but I
have no Idea how this works.
Can anyone help me?
--- code start ---
Set ie = CreateObject("InternetExplorer.Application")
t = Timer
With ie
.visible = False
.Silent = True
.Navigate url
Do Until Not .Busy Or Timer - t > 30
DoEvents
Loop
'MsgBox ie.Document.Title
GetWebInfo = ie.Document.Title
.Quit
End With
Set ie = Nothing
--- code end ---
Archived from group: microsoft>public>vb>syntax