The VBA-Friendly WebView2 COM Control
Microsoft supports the WebView2 SDK for Win32 C/C++, .NET and WinUI; it doesn't list VBA, VB6 or Office as hosts and doesn't ship an ActiveX control. LiteView2 wraps WebView2 with hundreds of documented VBA methods, direct DOM access, a JSON engine, and a bidirectional JavaScript bridge — everything you need to embed and control a web component from VBA.
WebView2 ActiveX
WebView2 ActiveX — the COM Control Microsoft Didn’t Ship
Works in VBA (Excel, Access, Word, Outlook, PowerPoint, Visio, Project), VB6, VB.NET, C#, C++, Delphi, Python, PowerShell, AutoIt — and any COM host.
LiteView2 is a commercial WebView2 ActiveX/COM control. It exposes hundreds of documented methods, dozens of documented events, and a JSON engine to any host that consumes COM — VBA (Excel, Access, Word, Outlook), VB6, VB.NET, C#, C++, Delphi, Python (via pywin32), and PowerShell. It supports both registered and registration-free deployment. Microsoft doesn't ship an ActiveX control for WebView2, and the WebView2 team has said it has no plans to.
30-day commercial trial · No telemetry · 32-bit and 64-bit · No admin required (reg-free mode)
What LiteView2 exposes
Hundreds of documented methods across several interfaces, dozens of documented events, and a standalone JSON engine. All via standard COM dispatch — no special SDK, no type library required to get started.
Documented MethodsNavigation, DOM, JavaScript, PDF, screenshots, cookies, downloads, and more
Documented EventsNavigation, DOM ready, web message, downloads, authentication, process lifecycle
JSON EngineStandalone C++ JSON parser — no WebView2 required. Works in any VBA/VB6 host
Reg-Free DeployCopy OCX next to your .accdb or .xlsm — no regsvr32, no admin rights, no IT ticket
Host Objects (JS→VBA)AddHostObjectToScript — call VBA methods directly from JavaScript in the page
Multi-Browser PoolIBrowserPool: multiple independent browser instances per form, indexed by Long
Which hosts does it work in?
Any host that consumes COM/ActiveX can use LiteView2 — both the registered OCX (design-time) and the registration-free pool (runtime code).
| Host | Registered Mode | Reg-Free Mode | 32-bit | 64-bit |
| Excel VBA | ✔ | ✔ | ✔ | ✔ |
| Access VBA | ✔ | ✔ | ✔ | ✔ |
| Word VBA | ✔ | ✔ | ✔ | ✔ |
| Outlook / PowerPoint / Visio / Project VBA | ✔ | ✔ | ✔ | ✔ |
| Visual Basic 6 (VB6) | ✔ | ✔ | ✔ | N/A (VB6 is 32-bit only) |
| VB.NET / C# (via COM Interop) | ✔ | ✔ | ✔ | ✔ |
| C++ (ATL/MFC) | ✔ | ✔ | ✔ | ✔ |
| Delphi | ✔ | ✔ | ✔ | ✔ |
| Python (pywin32 / win32com) | ✔ | ✔ | ✔ | ✔ |
| PowerShell | ✔ | ✔ | ✔ | ✔ |
| AutoIt / JScript / HTA / WSH | ✔ | ✔ | ✔ | ✔ |
Code sample
VBA (Access/Excel) — Registered Mode:
Private WithEvents m_lv As LiteView2Lib.LiteView2Ctrl
Private Sub Form_Load()
Set m_lv = Me.LiteView2Ctrl1.Object
End Sub
Private Sub m_lv_WebViewReady()
m_lv.SetLocalContentRoot CurrentProject.Path & "\html"
m_lv.Navigate "https://lv2.example/dashboard.html"
End Sub
Private Sub m_lv_NavigationCompleted(ByVal url As String, ByVal success As Boolean)
m_lv.ExecuteScript "loadData(" & BuildJson() & ")"
End Sub
VBA — Reg-Free Mode (IBrowserPool):
Private pool As Object
Private idx As Long
Private Sub Form_Load()
Set pool = GetPool() ' from modLV2Pool — paste once per project
idx = pool.CreateInControl("about:blank", Me.Frame1)
pool.SetReadyCallback idx, Me, "OnBrowserReady"
End Sub
Public Sub OnBrowserReady()
pool.SetLocalContentRoot idx, CurrentProject.Path & "\html"
pool.Navigate idx, "https://lv2.example/dashboard.html"
End Sub
Why not use something else?
Why not Microsoft's Edge Browser Control?
Microsoft's Edge Browser Control is an Access control: Microsoft's article applies to Access for Microsoft 365 and Access 2024. It is not available in Excel, Word, VB6 or other hosts. LiteView2 works across all COM hosts. See the full comparison.
Why not a .NET or Delphi Chromium library?
.NET-native and Delphi-native Chromium bindings are excellent inside their own language ecosystems. Neither category targets COM/ActiveX hosting and neither has a story for VBA in Excel, Access, or Word. LiteView2 is a commercial ActiveX/COM control built specifically to drop into any host that consumes COM.
Why not a community WebView2 OCX wrapper?
Community projects are valuable open-source efforts, often labeled beta by their own authors. LiteView2 is commercially supported software: bug reports get triaged, and licensing is clear for enterprise deployment.
Frequently asked questions
Is there an ActiveX version of WebView2?
No. Microsoft doesn't ship one, and the WebView2 team has said it has no plans to. LiteView2 is a commercial ActiveX/COM control built on WebView2.
Can I use WebView2 in Excel VBA?
Not with Microsoft's WebView2 SDK directly — Microsoft doesn't list VBA as a host and ships no ActiveX control. LiteView2 gives you a COM/ActiveX control you drop on an Excel UserForm or embed at runtime via IBrowserPool. Same Chromium engine, VBA-native API.
Is there a WebView2 control for Visual Basic 6?
An answer on Microsoft Q&A (question 727127, February 2022) says: "There's no official support of VB6 for WebView2." LiteView2 ships a 32-bit x86 OCX that installs and runs in VB6 projects — registered or registration-free.
What does the trial include?
30 days of full access: the complete documented API surface — every method and event — plus JSON engine, registered and reg-free modes, commercial use. No watermark during the trial period. Download now and follow the quickstart.
The WebView2 ActiveX Microsoft didn’t ship
Hundreds of documented methods. Dozens of documented events. Every COM host. Registered or reg-free. Free 30-day trial.
Download free 30-day trial
30-day commercial trial · No telemetry · 32-bit and 64-bit · No admin required (reg-free mode)
See also: Replace the WebBrowser Control · vs Edge Browser Control · Deploy without admin rights · IBrowserPool API