WebBrowser control - ADVANCED - GURUS - HELP Please

L

LARB

Afternoon,

Firstly, I have extensively researched Google before I posted this question.

I am using the WebBrowser control on a form.

Firstly I point to a blank URL

myBrowser.Navigate "about:blank"

when I change the URL to say

myBrowser.Navigate "www.nytimes.com"

I receive an error "Method 'Navigate' of object 'IWebBrowser2' failed".

Please, does anyone know how to get around this error when changing the URL path ?

Thanks

Pete
 
D

Dick Kusleika

Pete

It worked for me, using a userform in Excel 2000 on Win98SE. You might try
putting the http in front the URL or using Navigate2. Oddly, the TypeName
of my web browser control is WebBrowser, not IWebBrowser2, but I'm not sure
why there's a difference. Here's the code I used

Private Sub UserForm_Initialize()

Me.WebBrowser1.Navigate "about:blank"

Me.WebBrowser1.Navigate "www.nytimes.com"

Debug.Print TypeName(Me.WebBrowser1)
End Sub

You can also see here

http://www.dicks-blog.com/excel/2004/10/webbrowser_cont.html
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top