4

I would like to embed a modern WebView2 component (Edge Chromium Browser Control) inside an old-style VBA UserForm.

I surmise that I would need the following installed on the system:

  • Edge Chromium Broswer
  • Webview2 SDK

While I have the Edge Chromium Browser installed I am unsure how to install the Webview2 SDK outside of the context of a specific Visual Studio Project. To use it in a VBA solution it needs to reference some sort of global system-wide file?

Then, apparently the type library which contains the functionality we need to embed the Edge browser is Windows.Web.winmd. I presume I would need to "reference" that in some way but I am not sure how...

Sam
  • 2,745
  • 3
  • 20
  • 42
  • Does this answer your question? [Late Binding vs Early Binding in VBA - (CreateObject() vs New)](https://stackoverflow.com/questions/50583705/late-binding-vs-early-binding-in-vba-createobject-vs-new) – buran Jun 18 '20 at 07:45
  • @buran do the winmd files behave the same to VBA as COM controls as long as you can reference a file? – Sam Jun 18 '20 at 09:05
  • Your question is "I presume I would need to "reference" that in some way but I am not sure how..." - and the link explains the two possibilities - early and late binding. i.e. to use a control on the form – buran Jun 18 '20 at 09:13
  • I am well acquainted with early and late binding. What string should I use for late binding via `CreateObject`? I tried `Windows.Web` but this failed? – Sam Jun 18 '20 at 09:29

1 Answers1

0

The closest thing I have found to answering this question is the following set of dlls:

http://vbrichclient.com/#/en/Downloads.htm

Sam
  • 2,745
  • 3
  • 20
  • 42