Consulting

Results 1 to 2 of 2

Thread: UserForm webBrowser ctl: how to detect 'no web page found' for a defective url?

  1. #1

    UserForm webBrowser ctl: how to detect 'no web page found' for a defective url?

    Excel 2016; VBA.

    I have webbrowser control working in Excel UserForm.


    If I call it with a legitimate url, I get the web page displayed:
    Me.WebBrowser1.Navigate url


    If I use a non-existant url, the control displays a coloured text message that the page for that url has not been found.

    How do I detect automatically, via vba, that no web page was returned for a (non-existant) url?

    Thanks

  2. #2
    Moderator VBAX Sage SamT's Avatar
    Joined
    Oct 2006
    Location
    Near Columbia
    Posts
    7,814
    Location
    Moderator bump
    I expect the student to do their homework and find all the errrors I leeve in.


    Please take the time to read the Forum FAQ

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •