Skip to content
Tech News
← Back to articles

XLIDE: VBA without excel

read original more articles
Why This Matters

XLIDE revolutionizes VBA development by enabling editing directly within VS Code without requiring Office or COM automation, making VBA more accessible across different platforms. Its integration with GitHub Copilot and advanced code navigation tools enhances productivity and code management for developers. This development broadens the possibilities for automation and scripting in environments previously limited by traditional Office dependencies.

Key Takeaways

XLIDE - Excel VBA for VS Code

Edit Excel VBA code directly in VS Code. Browse modules in a sidebar tree, edit with syntax highlighting and symbol navigation (Go to Definition, Find All References, Rename Symbol), save changes back to the .xlsm file with Ctrl+S, and expose every operation to GitHub Copilot via the Language Model API.

Requirements

VS Code 1.95+

1.95+ Python 3.10+ -- the VBA read/write backend runs as a child process

-- the VBA read/write backend runs as a child process Python packages: pyOpenVBA >= 3.0.1 , openpyxl >= 3.1.0

No COM automation, no Office installation, no win32com -- works on Windows, macOS, Linux, and remote containers.

Development setup

git clone https://github.com/WilliamSmithEdward/xlide_vscode.git cd xlide_vscode # TypeScript side npm install npm run compile # type-check + esbuild bundle -> out/extension.js # Python side (optional venv) python -m venv .venv .venv \S cripts \a ctivate # or: source .venv/bin/activate pip install -r python/requirements.txt

Press F5 in VS Code to launch an Extension Development Host with the extension loaded and the watch compiler running.

... continue reading