LV2 LiteView2
Try LiteView2
Excel VBA

Embed Chromium in Excel VBA — in 5 Minutes

Also works in Access, Word, Outlook, PowerPoint, VB6, VB.NET, C#, Delphi, Python — and any COM host.

LiteView2 embeds a full Chromium WebView2 browser inside an Excel UserForm. It renders modern HTML5, runs JavaScript, and bridges directly to VBA — no Selenium, no CDP, no external process. Drop the control on a UserForm and you have a Chromium browser in your spreadsheet in under 5 minutes.

30-day commercial trial · No telemetry · 32-bit and 64-bit · No admin required (reg-free mode)

Setup in 4 steps

1

Register the OCX or copy it next to your workbook

Registered Mode: Run regsvr32 LiteView2_x64.ocx once (admin required). Reg-Free Mode: Copy both OCX files next to your .xlsm — no admin rights needed.

2

Add the control to a UserForm

Registered Mode: Open a UserForm. Right-click Toolbox → Additional Controls → tick LiteView2 Control → drag onto form. Reg-Free Mode: Add a plain Frame control to the UserForm instead.

3

Add the VBA code

' Registered Mode — in your UserForm module
Private WithEvents m_lv As LiteView2.LiteView2Ctrl

Private Sub UserForm_Initialize()
    Set m_lv = Me.LiteView2Ctrl1.Object
End Sub

Private Sub m_lv_WebViewReady()
    m_lv.SetLocalContentRoot ThisWorkbook.Path & "\html"
    m_lv.Navigate "https://lv2.local/dashboard.html"
End Sub

Private Sub m_lv_NavigationCompleted(ByVal url As String, ByVal success As Boolean)
    ' Push Excel data to the browser
    Dim json As String
    json = "{""total"": " & Range("B1").Value & "}"
    m_lv.ExecuteScript "updateDashboard(" & json & ")"
End Sub

Private Sub m_lv_WebMessageReceived(ByVal message As String, ByVal source As String)
    ' Receive data back from JavaScript
    If InStr(message, "export") > 0 Then ExportData
End Sub
4

Run the UserForm

Press F5 or call UserForm1.Show from a macro. The browser loads inside the UserForm and renders your HTML5 page.

Why not just use Selenium or the legacy WebBrowser control?

The legacy WebBrowser control is disabled in Excel

The legacy IE WebBrowser control is disabled in Excel as of Office 2013 on many configurations and received no security updates after IE end-of-support in June 2022. Modern HTML, CSS Grid, ES6+ JavaScript, and WebSockets do not work in it. LiteView2 uses the current Chromium engine — the same one in Google Chrome.

Selenium is for browser automation, not embedding

Selenium and Playwright run a browser as a separate process that you control over a network protocol. They are excellent for automating external websites. LiteView2 puts the browser inside your UserForm — same window, same process, same VBA event loop. JavaScript in the page can call VBA methods directly via AddHostObjectToScript.

FAQ

Can I embed a browser in an Excel UserForm?

Yes. LiteView2 is an ActiveX OCX designed specifically for this. Drop it on a UserForm (Registered Mode) or embed at runtime via IBrowserPool into a Frame control (Reg-Free Mode).

Does it work in 32-bit and 64-bit Excel?

Yes. LiteView2 ships both LiteView2_x86.ocx (32-bit) and LiteView2_x64.ocx (64-bit). The correct file is loaded automatically based on your Office bitness.

Can I push Excel data (ranges, tables) to the browser?

Yes. Use ExecuteScript to call a JavaScript function with JSON data, or push a DAO/ADO recordset directly using PushRecordset. JavaScript in the page receives the data and renders it — no page reload needed.

Chromium inside Excel — 5 minutes from now

HTML5, JavaScript, Chart.js, Bootstrap — inside your UserForm. Free 30-day trial.

Download free 30-day trial
30-day commercial trial · No telemetry · 32-bit and 64-bit

WebView2 in Access VBA · HTML5 Dashboards in VBA · Replace the WebBrowser Control · Full API reference