Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
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?
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 9
Default code to navigate IE7 runs on XP but not on Vista

try this

ActiveWorkbook.FollowHyperlink Address:="http://www.anything.com/", _
NewWindow:=True

--
Ak


"Ed Vogel" wrote:

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?

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 4
Default code to navigate IE7 runs on XP but not on Vista

1. Is this code going to work with IE7 Protected mode on Vista?

2. If positive, how do I extract data from the browser page after IE window
is open?

"Ak Man" wrote:

try this

ActiveWorkbook.FollowHyperlink Address:="http://www.anything.com/", _
NewWindow:=True

--
Ak


"Ed Vogel" wrote:

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?

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
code to extract data from a website runs of XP but not Vista Russ Excel Programming 1 May 16th 08 01:30 AM
Code runs slooooww GettingThere Excel Programming 2 December 15th 06 12:28 AM
Code only runs once Kent Excel Programming 3 November 24th 05 03:47 PM
Code runs in 2002 but not in 97!? Big Chris[_39_] Excel Programming 4 August 25th 05 12:22 PM
can navigate through intranet site with Web Query (VB code?)? GEORGIA Excel Programming 0 July 26th 05 06:59 PM


All times are GMT +1. The time now is 06:11 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"