PC Review


Reply
Thread Tools Rate Thread

code to navigate IE7 runs on XP but not on Vista

 
 
Ed Vogel
Guest
Posts: n/a
 
      12th Aug 2008
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 With Quote
 
 
 
 
Ak Man
Guest
Posts: n/a
 
      12th Aug 2008
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 With Quote
 
Ed Vogel
Guest
Posts: n/a
 
      12th Aug 2008
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 With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
code to extract data from a website runs of XP but not Vista Russ Microsoft Excel Programming 1 16th May 2008 01:30 AM
How to Navigate Vista without a mouse SkyKnites Windows Vista Hardware 1 12th Apr 2008 11:41 PM
Vista: Windows Explorer missing button for navigate up =?Utf-8?B?TS1mb3JjZQ==?= Windows Vista File Management 3 11th Oct 2006 09:13 PM
can navigate through intranet site with Web Query (VB code?)? =?Utf-8?B?R0VPUkdJQQ==?= Microsoft Excel Programming 0 26th Jul 2005 06:59 PM
Navigate Back with code Magnus Blomberg Microsoft ASP .NET 2 12th Apr 2005 09:00 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 01:15 AM.