Share via

VBA webbrowser control not working in Excel VBA

Georgekutty, Renju 1 Reputation point
Oct 27, 2022, 2:29 PM

I tried to use web browser control with excel.

I have a VBA Project. Added User form. Placed a web browser on the form.

Initially it worked. But after some time it stopped function. The web browser stopped to open websites.

Office Development
Office Development
Office: A suite of Microsoft productivity software that supports common business tasks, including word processing, email, presentations, and data management and analysis.Development: The process of researching, productizing, and refining new or existing technologies.
4,339 questions
Office Visual Basic for Applications
Office Visual Basic for Applications
Office: A suite of Microsoft productivity software that supports common business tasks, including word processing, email, presentations, and data management and analysis.Visual Basic for Applications: An implementation of Visual Basic that is built into Microsoft products.
1,502 questions
{count} votes

3 answers

Sort by: Most helpful
  1. Dillon Silzer 57,711 Reputation points
    Oct 27, 2022, 3:25 PM

    Hi @Georgekutty, Renju

    I just tried loading Microsoft Web Browser and go the message:

    254844-image.png

    From what I see, this functionality has been disabled due to security (as previously stated, IE is no longer supported and so aren't ActiveX controls). You should find a different method to achieve what you are trying to.

    If you are desparate to continue (which is not recommended) you could try opening regedit and going to the following key:

    Computer\HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Office\ClickToRun\REGISTRY\MACHINE\Software\Microsoft\Office\16.0\Common\COM Compatibility\{8856F961-340A-11D0-A96B-00C04FD705A2}

    Change the value of Compatibility Flags from 400 to 0.

    254845-image.png

    ------------------------------------------------------

    If this is helpful please accept answer.

    0 comments No comments

  2. Georgekutty, Renju 1 Reputation point
    Oct 28, 2022, 7:33 AM

    Hi @Dillon Silzer

    Thank you for your response

    We tried the registry edit solution you suggested, But still facing the same issue. Are you aware of any alternative to the web browser control.

    0 comments No comments

  3. Tom van Stiphout 1,781 Reputation points MVP
    Oct 29, 2022, 4:21 PM

    The "workaround" is to open the browser itself as a separate app, rather than using the webbrowser control.

    MSFT is working on a new webbrowser control for Access, based on latest tech. Maybe when it comes out it can be used in Excel as well.

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.