Right-click an Office file in the Explorer and choose Open VBA Macros. The same button is in the editor title bar when the file is open in another editor. Your spreadsheet, document and slide viewers stay the default for these files.
A file named vbaProject.bin (the VBA part inside an .xlsm package) opens in the viewer directly.
Reopen with the Default Editor in the editor title goes back to your usual editor for that file.
Press / to jump to the search box. Click a line number to mark a line; Open as text opens the module at that line.
To try it without a file of your own, run VBA Viewer: Open the Sample Workbook from the Command Palette. The sample's names and amounts are made up, and its code is harmless.
The Pro tools are in the Command Palette (VBA Viewer: ... (Pro)), in the Explorer right-click menu as Zovo Pro: ..., in the editor title menu of the viewer, and in the small row at the end of the viewer toolbar. The row closes with its x for the rest of the session, and the setting vbaViewer.showProTools hides it for good.
ZOVO PRO AVAILABLEOne-time purchase · No subscription
Add Pro tools to VBA Viewer & Macro Extractor
Export all modules. Write every module to a folder as .bas, .cls and .frm files for git in one click; a re-export only rewrites the modules that changed.
Macro security scan. Auto-run entry points, Shell, CreateObject, PowerShell, downloads, hex and Base64 strings, URLs and IP addresses, with a severity table and a Markdown or JSON report.
Compare macros. Compare the macros of two Office files module by module: changed, added and removed modules with line counts, and a side-by-side diff of each module.
Yes. VBA Viewer & Macro Extractor is free and MIT licensed.
How do I install VBA Viewer & Macro Extractor?
Click "Install in VS Code" above, or search for zovo.zovo-vba-viewer in the Extensions view.
Marketplace README snippet (copy link for VS Code Marketplace)
See full docs & install options at [vscode.zovo.one/extensions/zovo-vba-viewer/](https://vscode.zovo.one/extensions/zovo-vba-viewer/), browse all Zovo VS Code extensions at [vscode.zovo.one](https://vscode.zovo.one/), or explore [Zovo Pro](https://vscode.zovo.one/pro/).
DOCX viewer and Word viewer for VS Code, free and offline. Also a DOC and ODT viewer: open .docx, old .doc and .odt files with dark mode, search and outline. Compare Word documents as a redline (DOCX compare and DOCX diff) and export track changes to Word.
XLSX viewer, Excel viewer and CSV viewer, free, with SQL: query CSV, Excel and Parquet with GROUP BY and JOIN of sheets. 1M rows open fast, with sheets, formulas, filter, sort, stats and copy as Markdown. No ads, no license banner. Also XLS and ODS. Optional Zovo Pro: edit many CSV and Excel cells a
PPTX viewer and PowerPoint viewer, free and offline, no LibreOffice. A PPT viewer and slide viewer for .pptx, .ppsx, .potx and old .ppt decks: present with notes, full screen, thumbnails, search, copy a slide as PNG or Markdown. Reloads when a script or AI agent saves the deck.
PDF viewer and PDF reader for VS Code, free and offline: dark or sepia pages that keep photos in their true colors, highlights you can copy as Markdown, search, outline, thumbnails and a reload on change that keeps your page.
DOCX editor and Word editor for VS Code: edit Word documents (.docx, .dotx) in place. Type in paragraphs and tables, bold, italic, underline, styles, lists, table rows, find and replace, undo and redo. Saves only what you changed: pictures, fields, tracked changes and comments stay as they are. Offl
RST preview and reStructuredText preview for VS Code with no Python, no Sphinx and no setup. Live preview with scroll sync, grid and list tables, admonitions, code colors, math, images, includes, outline and HTML export. Free, works offline.