View Single Post
  #1   Report Post  
Posted to microsoft.public.excel.programming
Ed Vogel Ed Vogel is offline
external usenet poster
 
Posts: 4
Default code to navigate IE7 runs on XP but not on Vista

My macro code:
Set ie = CreateObject("InternetExplorer.Application")
ie.Navigate "http://www.anything.com"
ie.Visible = True
Do While ie.busy And Not ie.ReadyState = 4
DoEvents
Loop
ret = ie.Document.Title '= error: method Document of IWebBrowser2 failed

There is something to do with IE7 Protected mode security on Vista. Can
anyone help me to work around this issue?